public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: wichert@cistron.nl (Wichert Akkerman)
To: linux-kernel@vger.kernel.org
Subject: Re: Children first in fork
Date: 19 Apr 2001 18:31:23 +0200	[thread overview]
Message-ID: <9bn3sr$fer$1@picard.cistron.nl> (raw)
In-Reply-To: <20010419133538.A28654@quatramaran.ens.fr> <NCBBLIEPOCNJOAEKBEAKAEEJOHAA.davids@webmaster.com> <200104191256.OAA31141@quatramaran.ens.fr>

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 |


  reply	other threads:[~2001-04-19 16:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-19 11:35 Children first in fork Éric Brunet
2001-04-19 12:07 ` David Schwartz
2001-04-19 12:56   ` Éric Brunet
2001-04-19 16:31     ` Wichert Akkerman [this message]
2001-04-19 17:58       ` Linus Torvalds
2001-04-20  7:46         ` Wichert Akkerman
2001-04-20 10:13         ` Éric Brunet
2001-04-20 17:47           ` Linus Torvalds
2001-04-20 10:27         ` Thomas Pornin
  -- strict thread matches above, loose matches on Subject: below --
2001-04-20 14:56 Mark Kettenis
2001-04-20 17:49 ` Linus Torvalds

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='9bn3sr$fer$1@picard.cistron.nl' \
    --to=wichert@cistron.nl \
    --cc=linux-kernel@vger.kernel.org \
    /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