From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f45.google.com ([209.85.216.45]) by ewsd; Thu Dec 19 01:32:38 EST 2019 Received: by mail-pj1-f45.google.com with SMTP id bg7so1534282pjb.5 for <9front@9front.org>; Wed, 18 Dec 2019 22:32:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iastate.edu; s=google20150603; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Y8f3Mw2hqBTWe9/ZOsdztRiakJkU123+Wg8oTybwMn8=; b=FWXyk/BJ+Y1KJTpNv4HtU3Hp2MAq+vxnF6D/ffF3NfMCy246q7W8Hh3i8rz7eE41vM iYCilLwXtc0d93DdUjeTYJhl7t+Frk6gGmaUARXKgq9kW0J7npQYpx0RlUnnSddgdflr giZv91CRdz6EbnlcmldDfYVo8ImQwKfpJpPok= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Y8f3Mw2hqBTWe9/ZOsdztRiakJkU123+Wg8oTybwMn8=; b=GHBpo5SOVGhO7REIiJEu6hprgTbtyny3Js59t+OieBUCk8VzVcHTNzcg8Hx7RRccTZ U2ofoEVHVBBGhPpa3VtAISB/ZehVQCkXI4n95qdKBC2vHUpQHqShJuvBDOrgUNIY0GwM zD26jxYTDkSnNpM/UZWDxtPJyBr9q8RAmSwC7bsqWpRE4XSM5VbK7J2libg5eXcXHj8n RA+oS00P7prZIuSo4rorTkXfCfq477NTYIBHMV5WPLSK/Kpz2DXX0PNVuZyBGCM0vtXK vHF+GPH/jISvshJNE7XQ3h0G1K0UCIDAS6qwL/1ppKctFFg3uOPvTZG7L3pVFWHUFHXc zSSw== X-Gm-Message-State: APjAAAXv2/TXlg3TuQRq4XRQ0xKy753/1V3lD3kFl4TQsIPHbLN05RPg dIdlXIuqzr1q24qH9SSxkFwKci921Tgu7Nx+mrfhsSRz X-Google-Smtp-Source: APXvYqz6HQ12XXHcM0qiF83npy/5y1n8rtPJGM1bZgrXB9oHYfJnv5bjtm1K0dHZo3WHc0jj0XP4rnraHwcIcbKaFDo= X-Received: by 2002:a17:902:421:: with SMTP id 30mr7595025ple.324.1576737154054; Wed, 18 Dec 2019 22:32:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jacob Moody Date: Thu, 19 Dec 2019 00:32:22 -0600 Message-ID: Subject: Re: [9front] thread(2) procexec To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: compliant property enhancement That looks better, probably best to document that they do return on error. On Wed, Dec 18, 2019 at 10:40 PM Alex Musolino 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