9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] p9p procrfork
@ 2006-01-08  1:05 erik quanstrom
  2006-01-08  1:10 ` Russ Cox
  0 siblings, 1 reply; 3+ messages in thread
From: erik quanstrom @ 2006-01-08  1:05 UTC (permalink / raw)
  To: 9fans

what is the reason that p9p doesn't support procrfork?
linux might be able to support procrfork via clone(2), but
of course, pthreads might have something else to say about
that.

- erik


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] p9p procrfork
  2006-01-08  1:05 [9fans] p9p procrfork erik quanstrom
@ 2006-01-08  1:10 ` Russ Cox
  2006-01-08  2:24   ` erik quanstrom
  0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2006-01-08  1:10 UTC (permalink / raw)
  To: erik quanstrom, Fans of the OS Plan 9 from Bell Labs

> what is the reason that p9p doesn't support procrfork?
> linux might be able to support procrfork via clone(2), but
> of course, pthreads might have something else to say about
> that.

you answered the question yourself.
we're not programming to linux.
we're programming to what we can do
portably across a range of unixes.
file descriptor and name space groups
(the only things you ever use procrfork for)
are not part of that.

if you need procrfork for rffdg before procexec, usually
you can get by with threadexec etc.

russ


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] p9p procrfork
  2006-01-08  1:10 ` Russ Cox
@ 2006-01-08  2:24   ` erik quanstrom
  0 siblings, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2006-01-08  2:24 UTC (permalink / raw)
  To: 9fans, Russ Cox

all the worlds a vax, i mean, a linux box. ;-)
i misread the source. i was reading Linux.c; 
i didn't realize that that is only for nptl.

actually, i was thinking about ndb/dns is doing.

- erik

Russ Cox <rsc@swtch.com> writes

| 
| > what is the reason that p9p doesn't support procrfork?
| > linux might be able to support procrfork via clone(2), but
| > of course, pthreads might have something else to say about
| > that.
| 
| you answered the question yourself.
| we're not programming to linux.
| we're programming to what we can do
| portably across a range of unixes.
| file descriptor and name space groups
| (the only things you ever use procrfork for)
| are not part of that.
| 
| if you need procrfork for rffdg before procexec, usually
| you can get by with threadexec etc.
| 
| russ


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-08  2:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-08  1:05 [9fans] p9p procrfork erik quanstrom
2006-01-08  1:10 ` Russ Cox
2006-01-08  2:24   ` erik quanstrom

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).