Date: Thu, 12 Jul 2001 08:45:55 +0200 (MET DST) From: j@uriah.heep.sax.de (Joerg Wunsch) To: freebsd-current@freebsd.org Subject: Re: cannot print to remote printer Message-ID: <200107120645.f6C6jtP45267@uriah.heep.sax.de> References: <lth8zikptx0.wl@hunter.munich.sgi.com> <p05101003b759266483c2@> <p05101003b759266483c2@[128.113.24.47]> <873d83pquy.wl@wilhelm.noname> <20010711214311.C2855@heechee.tobez.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) 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?200107120645.f6C6jtP45267>