On Wed, Feb 16, 2011 at 05:53:09PM +0530, M. Mohan Kumar wrote: > +static int chroot_daemonize(int chroot_sock) > +{ > + sigset_t sigset; > + struct rlimit nr_fd; > + int fd; > + > + /* Block all signals for this process */ > + sigprocmask(SIG_SETMASK, &sigset, NULL);
sigset is an uninitialized local variable so the result of this is undefined. We're missing sigfillset(&sigset). Stefan