From: Alexander Viro <viro@math.psu.edu>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rfork(), getss() etc etc
Date: Sat, 2 Sep 2000 05:39:00 -0400 [thread overview]
Message-ID: <Pine.GSO.4.10.10009020536200.9425-100000@weyl.math.psu.edu> (raw)
In-Reply-To: <Pine.GSO.4.10.10009020511350.9425-100000@weyl.math.psu.edu>
Arrgh. Sorry, I really need more coffee...
> register (int *)fn(void*) = _fn;
> register void *arg = _arg;
> register unsigned flagd = _flags;
> register int pid;
>
- /* new_sp ignored unless flags has CLONE_VM set */
+ /* new_sp ignored if it is 0 */
> pid = _syscall2(__NR_CLONE, flags, new_sp);
- if ((flags & CLONE_VM) && pid == 0)
+ if (pid == 0)
> exit((*fn)(arg));
> return pid;
next prev parent reply other threads:[~2000-09-02 9:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-02 7:50 nigel
2000-09-02 8:57 ` Alexander Viro
2000-09-02 9:31 ` Alexander Viro
2000-09-02 9:39 ` Alexander Viro [this message]
2000-09-02 9:49 nigel
2000-09-02 10:52 ` Alexander Viro
2000-09-03 2:51 ` Scott Schwartz
2000-09-03 3:03 ` Boyd Roberts
2000-09-05 5:32 ` Erik Theisen
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=Pine.GSO.4.10.10009020536200.9425-100000@weyl.math.psu.edu \
--to=viro@math.psu.edu \
--cc=9fans@cse.psu.edu \
/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).