I want to know how to kill zombie process (defunct) in unix.
I am using
App Architecture is sun4
Kernel Architecture is sun4m
OS Name is SunOS
OS Version is 4.1.4
Kernel Version is SunOS Release 4.1.4 (CS_MCAST)
#1: Sat Jul 29 03:53:22
I know I can call wait(). however,wait will suspends the parent process
that's what I don't wnat.
I just want the child process could exit and don't become a zombie while
the parent process will not suspend to wait the child process.
And I have tried the following method taught in Unix Networking Programming
by Stevens and it seems not working properly in my system.
waitpid(-1, NULL, WNOHANG | WUNTRACED);