Defunct processes after fork/_exit



Hi,

I've written some code that forks and does some useful
work in the child process. While the child process is executing,
everything is fine, but once it terminates and calls _exit(0) the
process listing shows it as being defunct:

/home/rgasch/src/terraform/src> ps aux | grep terra
rgasch    1273  3.1  3.8  7904 4976 pts/0    S    16:13   0:03 ./terraform -f wo
rgasch    1274  1.5  0.0     0    0 pts/0    Z    16:13   0:01 [terraform <defun
rgasch    1295  0.0  0.3  1152  404 pts/2    S    16:15   0:00 grep terra


Any idea what I might be doing wrong to cause this?

Thanks
--> Robert



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]