Re: a fork-like C-wrapper for clone(), DONE!

From: H. Peter Anvin (
Date: Wed Apr 25 2001 - 14:15:51 EST

Followup to: <>
By author: Francesc Oller <>
In newsgroup:
> Hi all,
> Some days before I asked for a fork-like C-wrapper for clone() which
> could be used like fork() thinking that somebody could have done it
> before but I only received two e-mails saying that probably it
> wasn't worth it or even it was complete non-sense.
> Therefore, I've done it myself. Code follows.
> Please, before beginning to flame me for doing "such kind of non-
> standard threading model", I've to say that IMHO it has some merit.
> After all it was E.W.Dijkstra who invented it in the late sixties.

glibc already contains such a wrapper; it is called __clone(). At
least my system has "man clone" show the man page for it.


<> at work, <> in private!
"Unix gives you enough rope to shoot yourself in the foot."
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:14 EST