At 8:45 AM +0200 7/12/01, Joerg Wunsch wrote:
>Anton Berezin <[EMAIL PROTECTED]> 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            =   [EMAIL PROTECTED]
Senior Systems Programmer           or  [EMAIL PROTECTED]
Rensselaer Polytechnic Institute    or  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to