Date: Thu, 12 Jul 2001 12:21:48 +0200 From: Anton Berezin <tobez@tobez.org> To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de> Cc: freebsd-current@freebsd.org Subject: Re: cannot print to remote printer Message-ID: <20010712122148.B10960@heechee.tobez.org> In-Reply-To: <200107120645.f6C6jtP45267@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Thu, Jul 12, 2001 at 08:45:55AM %2B0200 References: <lth8zikptx0.wl@hunter.munich.sgi.com> <p05101003b759266483c2@> <p05101003b759266483c2@[128.113.24.47]> <873d83pquy.wl@wilhelm.noname> <20010711214311.C2855@heechee.tobez.org> <200107120645.f6C6jtP45267@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 12, 2001 at 08:45:55AM +0200, Joerg Wunsch wrote: > Anton Berezin <tobez@FreeBSD.ORG> wrote: > > > if (fork() == 0) { > > - signal(SIGCHLD, SIG_IGN); > > + signal(SIGCHLD, SIG_DFL); > > This is unportable. > If you want automatic zombie reaping, better don't use the simplified > signal(3) handling, but instead spell it out as sigaction(2) using the > SA_NOCLDWAIT flag. The above won't even give you a warning on systems > that don't implement automatic zombie reaping, while with sicaction, > you'll get a compile-time error for SA_NOCLDWAIT not being defined. Umm, I don't understand. I do not want automatic zombie reaping, I want exactly the opposite, and my patch does just that. Cheers, \Anton. -- May the tuna salad be with you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010712122148.B10960>