9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Jacob Moody <jsmoody@iastate.edu>
To: 9front@9front.org
Subject: Re: [9front] thread(2) procexec
Date: Thu, 19 Dec 2019 00:32:22 -0600	[thread overview]
Message-ID: <CA+gzr0+C4REauq9uJUVW8=xxLu7K_=v7a6nd1R0=8Wfby7SySg@mail.gmail.com> (raw)
In-Reply-To: <F945AC5132AF650627E2278F6B483C2E@musolino.id.au>

That looks better, probably best to document that they do return on error.

On Wed, Dec 18, 2019 at 10:40 PM Alex Musolino <alex@musolino.id.au> wrote:
>
> 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



-- 
Jacob Moody
ISEAGE


  reply	other threads:[~2019-12-19  6:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-18 20:34 Jacob Moody
2019-12-19  4:39 ` Alex Musolino
2019-12-19  6:32   ` Jacob Moody [this message]
2019-12-19  6:45     ` Alex Musolino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+gzr0+C4REauq9uJUVW8=xxLu7K_=v7a6nd1R0=8Wfby7SySg@mail.gmail.com' \
    --to=jsmoody@iastate.edu \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).