bdg1983
06-11-2001, 08:54 PM
...just why this (http://q3test.2y.net/~moyix/insultd.c) code isn't working? It seems to die just after anything connects to it, but since I've closed down stdin, stdout, and stderr (it's a daemon) I'm not seeing any errors. I'm guessing segfault, but I can't find anything in the code that would do that.
For reference, here (http://tjs.org/~brendan/programming/src/insultd.c) is the last working version of the program. The only difference between it and the current version is that the newer one has a function to randomly pick an insult to display. However, when the new code is moved to another file, like this (http://q3test.2y.net/~moyix/new_code.c), it compiles and runs fine.
I'm hoping this is something obvious and stupid that I've missed.
Thanks,
:confused: moyix :confused:
For reference, here (http://tjs.org/~brendan/programming/src/insultd.c) is the last working version of the program. The only difference between it and the current version is that the newer one has a function to randomly pick an insult to display. However, when the new code is moved to another file, like this (http://q3test.2y.net/~moyix/new_code.c), it compiles and runs fine.
I'm hoping this is something obvious and stupid that I've missed.
Thanks,
:confused: moyix :confused: