Date: Wed, 28 Jul 1999 14:40:02 +1000 (EST) From: John Birrell <jb@cimlogic.com.au> To: eischen@vigrid.com (Daniel M. Eischen) Cc: jb@cimlogic.com.au, mi@aldan.algebra.com, stable@freebsd.org Subject: Re: uthread_init.c: 'Cannot get stdio flags' :-( Message-ID: <199907280440.OAA55371@cimlogic.com.au> In-Reply-To: <379E8126.3541FDA9@vigrid.com> from "Daniel M. Eischen" at "Jul 28, 1999 00:03:50 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907280440.OAA55371>