From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vultr.musolino.id.au ([45.76.123.158]) by ewsd; Wed Dec 18 23:40:04 EST 2019 Received: from 58.96.111.26 ([58.96.111.26]) by vultr; Thu Dec 19 15:39:27 EST 2019 Message-ID: From: Alex Musolino Date: Thu, 19 Dec 2019 15:09:24 +1030 To: 9front@9front.org Subject: Re: [9front] thread(2) procexec In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: stable hardware-based enhancement I think the following would be better, as it more closely resembles the DIAGNOSTICS section from exec(2). diff -r 3e677a96125d sys/man/2/thread --- a/sys/man/2/thread Tue Dec 10 15:13:44 2019 +1030 +++ b/sys/man/2/thread Thu Dec 19 15:07:34 2019 +1030 @@ -332,7 +332,8 @@ on success, they replace the calling thread (which must be the only thread in its proc) and invoke the external program, never returning. -On error, they return \-1. +On error, they return and set +.IR errstr . If .I cpid is not null, the pid of the invoked program -- Cheers, Alex Musolino