troglobit / uftpd

FTP/TFTP server for Linux that just works™
https://troglobit.com/projects/uftpd/
ISC License
182 stars 32 forks source link

Zombies when running uftpd in the background #4

Closed troglobit closed 9 years ago

troglobit commented 9 years ago

When I start uftpd in the background, which is the default when not giving the -n command line option, I get a new zombie process after each FTP or TFTP session.

troglobit commented 9 years ago

Turns out to be caused by the sig_init() function being called inside init(), which is called before daemonizing ... so the server process never got SIGCHLD.

Fix being tested right now.