Daemon program structure is common online:
Fork ()
Fork ()
Double fork, the main program written in the while loop is my own test, if the dead will restart:
The main {
The daemon ();
While (1)
{
Kill_test ();//test procedure if die on the resumption of
}
}
The phenomenon is:
To test the program does not start, the execution daemon, daemon will be transferred to detect process, but the process is a zombie process: [to monitor process], tone up process with brackets, kill kill not to drop,
What reason is this excuse me?