Help, daemon process failed!
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 an explaination for detail? Thanks a lot! P.S. My kernel is 2.4.18-14(RH8.0) |
And that is the code:
Code:
void daemon_init(/*const char* pname, int facility*/) |
no cool guy know this? :(
waiting........ |
All times are GMT -5. The time now is 12:22 AM. |