From owner-freebsd-stable Tue Jul 27 21:34:37 1999 Delivered-To: freebsd-stable@freebsd.org Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (Postfix) with ESMTP id 4027C14DC3 for ; Tue, 27 Jul 1999 21:34:21 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.3/8.9.1) id OAA55371; Wed, 28 Jul 1999 14:40:03 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199907280440.OAA55371@cimlogic.com.au> Subject: Re: uthread_init.c: 'Cannot get stdio flags' :-( In-Reply-To: <379E8126.3541FDA9@vigrid.com> from "Daniel M. Eischen" at "Jul 28, 1999 00:03:50 am" To: eischen@vigrid.com (Daniel M. Eischen) Date: Wed, 28 Jul 1999 14:40:02 +1000 (EST) Cc: jb@cimlogic.com.au, mi@aldan.algebra.com, stable@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Daniel M. Eischen wrote: > John Birrell wrote: > > Looks like ${PREFIX}/sbin/faxq has closed file descriptor 0 (stdin). > > It's legal to do that, so our thread initialisation will have to check > > for EBADF and not fail in that case. > > Assuming it's also legal for stdout and stderr, is this what you had > in mind (not compiled or tested)? Yes, at least as far as the initialisation goes. There is probably an issue about restoring the file descriptors on fork/exit/sigchld that I haven't thought through. [ I replied to this without looking at the sources, so what I just said may turn out to be of no consequence. I could claim that I'm so busy, but the truth is it's a sunny winter day here. 8-) ] -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message