From owner-freebsd-current Thu Jul 12 10:47:23 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id D78FA37B405 for ; Thu, 12 Jul 2001 10:47:19 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id f6CHl8U103958; Thu, 12 Jul 2001 13:47:09 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200107120645.f6C6jtP45267@uriah.heep.sax.de> References: <873d83pquy.wl@wilhelm.noname> <20010711214311.C2855@heechee.tobez.org> <200107120645.f6C6jtP45267@uriah.heep.sax.de> Date: Thu, 12 Jul 2001 13:47:06 -0400 To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch), freebsd-current@FreeBSD.ORG From: Garance A Drosihn Subject: Re: cannot print to remote printer Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 8:45 AM +0200 7/12/01, Joerg Wunsch wrote: >Anton Berezin 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