Re: a fork-like C-wrapper for clone(), DONE!
H. Peter Anvin (hpa@zytor.com)
25 Apr 2001 12:15:51 -0700
Followup to: <3AE6CD6B.745E@mat.upc.es>
By author: Francesc Oller <francesc@mat.upc.es>
In newsgroup: linux.dev.kernel
>
> 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.
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/