Date: Thu, 12 Jul 2001 13:47:06 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch), freebsd-current@FreeBSD.ORG Subject: Re: cannot print to remote printer Message-ID: <p0510100bb7738ef42af6@[128.113.24.47]> In-Reply-To: <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> <200107120645.f6C6jtP45267@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
At 8:45 AM +0200 7/12/01, Joerg Wunsch wrote: >Anton Berezin <tobez@FreeBSD.ORG> wrote: > >> if (fork() == 0) { >> - signal(SIGCHLD, SIG_IGN); >> + signal(SIGCHLD, SIG_DFL); > >This is unportable. His change is pretty portable, as I have been running RPI's version of lpd with the exact same change on several non-BSD operating systems for about five years now... >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. I don't think we're interested in automatic zombie reaping, but I'll parenthetically note that I do intend to switch lpr & friends over to using posix (sigaction) signal handling. I did eventually have to do that for some platform we (RPI) run lpr on, so it's just another area where I have to extract RPI's updates and fit them to current freebsd source. I'm going to do that separate from this bug fix though, as that is low priority on the list of lpr changes I have in mind. -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu 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?p0510100bb7738ef42af6>