Re: Children first in fork

Wichert Akkerman
2001-04-19T16:31:53Z

In article <200104191256.OAA31141@quatramaran.ens.fr>,
=?ISO-8859-1?Q?=C9ric?= Brunet <ebrunet@quatramaran.ens.fr> wrote:
>Yes, or a clone option (using ptrace, I can always change on the fly=20
>the fork system call into a clone system call and add whatever option I
>want).

Last time I tried that it didn't work since the kernel had already
grabbed the syscall number and the registers so I couldn't change it
anymore.

What you can do is what strace does: insert a loop instruction after
the fork or clone call and remove that when the call returns.

Wichert.

--
________________________________________________________________
/ Generally uninteresting signature - ignore at your convenience \
| wichert@cistron.nl http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |