I writed a daemon program, using the daemon_init() function, giving by the UNIX Network Programming Vol1[Stevens 1998]. But
it exited after this function was called! And when I debuged it with
gdb, I found it exited normally just in this call. Even did the daemon() system call!
I'm very puzzled. Could someone who give me a explaination for detail?
Thanks a lot!