From owner-freebsd-standards Sun Sep 29 12: 0:24 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FCE137B404 for ; Sun, 29 Sep 2002 12:00:23 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAA3043E4A for ; Sun, 29 Sep 2002 12:00:22 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8TJ0MCo043913 for ; Sun, 29 Sep 2002 12:00:22 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8TJ0Mb7043912; Sun, 29 Sep 2002 12:00:22 -0700 (PDT) Date: Sun, 29 Sep 2002 12:00:22 -0700 (PDT) Message-Id: <200209291900.g8TJ0Mb7043912@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Valentin Nechayev Subject: Re: standards/43335: libc_r: execve() and close-on-exec flag, interrupted write() Reply-To: Valentin Nechayev Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The following reply was made to PR standards/43335; it has been noted by GNATS. From: Valentin Nechayev To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: Subject: Re: standards/43335: libc_r: execve() and close-on-exec flag, interrupted write() Date: Sun, 29 Sep 2002 21:22:40 +0300 Tue, Sep 24, 2002 at 11:23:19, avg (Andriy Gapon) wrote about "standards/43335: libc_r: execve() and close-on-exec flag, interrupted write()": AG> 4. libc_r execve() sets all descriptors that were not set expicitely to AG> non-blocking mode to blocking mode before doing "real" execve, which is AG> good and done with non-multithreaded programs possibly being exec'ed in AG> mind. However, it has a painful effect if this is done as part of spawning AG> another process (fork+exec), obviously all descriptors in a parent become AG> blocking that effectively kills multithreading during IO. I think there is AG> no other option if a programmer really means to share descriptors between AG> a multithreaded and a singlethreaded program. However, in the case close-on-exec flag is set on the descriptor, I think, it's better to leave AG> the descriptor as is, in the non-blocking mode. I caught another variant of the same problem. A test program forked and than child closes stdin & stdout (and opened /dev/null instead of them). On closing, thread layer restores previous flags (without O_NONBLOCK) before _thread_sys_close(). Parent which works with the same objects assumes that O_NONBLOCK is set and hangs on _thread_sys_read(). uthread_close.c has note that nonblocking will be restored in parent on SIGCHLD. But in case of closing without exit this logic fails. /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Sun Sep 29 21:16:10 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10BD537B401 for ; Sun, 29 Sep 2002 21:16:10 -0700 (PDT) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A8F443E3B for ; Sun, 29 Sep 2002 21:16:09 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.5) with ESMTP id g8U4Gfbj014841 for ; Mon, 30 Sep 2002 00:16:42 -0400 (EDT) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id g8U4GfQn014840 for freebsd-standards@freebsd.org; Mon, 30 Sep 2002 00:16:41 -0400 (EDT) Date: Mon, 30 Sep 2002 00:16:41 -0400 From: Craig Rodrigues To: freebsd-standards@freebsd.org Subject: Status of P1003_1B kernel config option? Message-ID: <20020930001641.A14796@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, What is the status of the P1003_1B kernel option? (ie. do a man p1003_1b) Is it actively maintained, or is it bitrotten? Does the implementation of POSIX message queues in /usr/src/sys/posix4/mqueue.h work in -CURRENT? Thanks. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Sun Sep 29 23:32:17 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2457437B401 for ; Sun, 29 Sep 2002 23:32:16 -0700 (PDT) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9FE243E65 for ; Sun, 29 Sep 2002 23:32:15 -0700 (PDT) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 327F59E5B; Mon, 30 Sep 2002 02:25:11 -0400 (EDT) Date: Mon, 30 Sep 2002 02:25:11 -0400 From: Mike Barcroft To: Craig Rodrigues Cc: freebsd-standards@freebsd.org Subject: Re: Status of P1003_1B kernel config option? Message-ID: <20020930022511.A47626@espresso.q9media.com> References: <20020930001641.A14796@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020930001641.A14796@attbi.com>; from rodrigc@attbi.com on Mon, Sep 30, 2002 at 12:16:41AM -0400 Organization: The FreeBSD Project Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Craig Rodrigues writes: > What is the status of the P1003_1B kernel option? I think the plan is to make this non-optional. > (ie. do a man p1003_1b) > Is it actively maintained, or is it bitrotten? Actively maintained. > Does the implementation of POSIX message queues in > /usr/src/sys/posix4/mqueue.h work in -CURRENT? Anything with a header and function prototypes should be considered working. If not, a problem report would be appropriate. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Mon Sep 30 7: 1: 5 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D644C37B401 for ; Mon, 30 Sep 2002 07:01:03 -0700 (PDT) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 300CD43E6A for ; Mon, 30 Sep 2002 07:01:03 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.5) with ESMTP id g8UE1Zbj016472 for ; Mon, 30 Sep 2002 10:01:36 -0400 (EDT) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id g8UE1ZNI016471 for freebsd-standards@freebsd.org; Mon, 30 Sep 2002 10:01:35 -0400 (EDT) Date: Mon, 30 Sep 2002 10:01:35 -0400 From: Craig Rodrigues To: freebsd-standards@freebsd.org Subject: Re: Status of P1003_1B kernel config option? Message-ID: <20020930100135.A16436@attbi.com> References: <20020930001641.A14796@attbi.com> <20020930022511.A47626@espresso.q9media.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020930022511.A47626@espresso.q9media.com>; from mike@FreeBSD.org on Mon, Sep 30, 2002 at 02:25:11AM -0400 Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Sep 30, 2002 at 02:25:11AM -0400, Mike Barcroft wrote: > > Does the implementation of POSIX message queues in > > /usr/src/sys/posix4/mqueue.h work in -CURRENT? > > Anything with a header and function prototypes should be considered > working. If not, a problem report would be appropriate. OK, I wasn't sure of the status of because at least on my system, there does not seem to be any man pages for mq_open(), mq_close(), etc. Also, what library needs to be linked in when using POSIX message queues? If I compile the following simple program, I get undefined errors at link time: #include #include int main(int argc, char *argv[]) { mqd_t a; mq_close(a); } -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Mon Sep 30 10:20:18 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7E6637B401 for ; Mon, 30 Sep 2002 10:20:17 -0700 (PDT) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71D3F43E86 for ; Mon, 30 Sep 2002 10:20:17 -0700 (PDT) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id CF9419E57; Mon, 30 Sep 2002 13:13:10 -0400 (EDT) Date: Mon, 30 Sep 2002 13:13:10 -0400 From: Mike Barcroft To: Craig Rodrigues Cc: freebsd-standards@freebsd.org Subject: Re: Status of P1003_1B kernel config option? Message-ID: <20020930131310.A62052@espresso.q9media.com> References: <20020930001641.A14796@attbi.com> <20020930022511.A47626@espresso.q9media.com> <20020930100135.A16436@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020930100135.A16436@attbi.com>; from rodrigc@attbi.com on Mon, Sep 30, 2002 at 10:01:35AM -0400 Organization: The FreeBSD Project Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Craig Rodrigues writes: > On Mon, Sep 30, 2002 at 02:25:11AM -0400, Mike Barcroft wrote: > > > Does the implementation of POSIX message queues in > > > /usr/src/sys/posix4/mqueue.h work in -CURRENT? > > > > Anything with a header and function prototypes should be considered > > working. If not, a problem report would be appropriate. > > OK, I wasn't sure of the status of because > at least on my system, there does not seem to be any > man pages for mq_open(), mq_close(), etc. I should have picked up on the fact that if you were asking whether something was working, it probably wasn't working for you. It looks like mqueue.h isn't really implemented, I took the liberty of turning off the install of mqueue.h into /usr/include. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Mon Sep 30 11:41:11 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2709537B401; Mon, 30 Sep 2002 11:41:11 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8048543E75; Mon, 30 Sep 2002 11:41:10 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.5) with ESMTP id g8UIf9Vo044736 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 30 Sep 2002 14:41:09 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.5/Submit) id g8UIf9cQ044733; Mon, 30 Sep 2002 14:41:09 -0400 (EDT) (envelope-from wollman) Date: Mon, 30 Sep 2002 14:41:09 -0400 (EDT) From: Garrett Wollman Message-Id: <200209301841.g8UIf9cQ044733@khavrinen.lcs.mit.edu> To: Mike Barcroft Cc: freebsd-standards@FreeBSD.ORG Subject: Re: Status of P1003_1B kernel config option? In-Reply-To: <20020930022511.A47626@espresso.q9media.com> References: <20020930001641.A14796@attbi.com> <20020930022511.A47626@espresso.q9media.com> Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG < said: > Anything with a header and function prototypes should be considered > working. If not, a problem report would be appropriate. _POSIX_MESSAGE_PASSING has never been implemented. Hence it is defined as -1 in . -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message