From owner-freebsd-current Thu Jul 12 3:21:54 2001 Delivered-To: freebsd-current@freebsd.org Received: from heechee.tobez.org (254.adsl0.ryv.worldonline.dk [213.237.10.254]) by hub.freebsd.org (Postfix) with ESMTP id 4BA3137B405 for ; Thu, 12 Jul 2001 03:21:51 -0700 (PDT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 9E78B543D; Thu, 12 Jul 2001 12:21:48 +0200 (CEST) Date: Thu, 12 Jul 2001 12:21:48 +0200 From: Anton Berezin To: Joerg Wunsch Cc: freebsd-current@freebsd.org Subject: Re: cannot print to remote printer Message-ID: <20010712122148.B10960@heechee.tobez.org> Mail-Followup-To: Anton Berezin , Joerg Wunsch , freebsd-current@freebsd.org References: <873d83pquy.wl@wilhelm.noname> <20010711214311.C2855@heechee.tobez.org> <200107120645.f6C6jtP45267@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107120645.f6C6jtP45267@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Thu, Jul 12, 2001 at 08:45:55AM +0200 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 On Thu, Jul 12, 2001 at 08:45:55AM +0200, Joerg Wunsch wrote: > Anton Berezin 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