All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: "Charles P. Wright" <cwright@cs.sunysb.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ptrace and threads
Date: Wed, 15 Feb 2006 15:31:03 -0500	[thread overview]
Message-ID: <20060215203103.GA7634@ccure.user-mode-linux.org> (raw)
In-Reply-To: <1140030841.10553.9.camel@polarbear.fsl.cs.sunysb.edu>

On Wed, Feb 15, 2006 at 02:14:01PM -0500, Charles P. Wright wrote:
> I tried using
> ptrace(PTRACE_DETACH, ..., ..., SIGSTOP) in the original tracing process
> to stop the process after the fork, followed by a ptrace(PTRACE_ATTACH)
> in the new tracing process.

This has worked for me in the past.  The one tricky bit is that the process
needs a SIGCONT before it will run again (and appear to be active under
the new tracer).

				Jeff

  reply	other threads:[~2006-02-15 20:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-15 19:14 ptrace and threads Charles P. Wright
2006-02-15 20:31 ` Jeff Dike [this message]
2006-02-21 23:29 ` Daniel Jacobowitz

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=20060215203103.GA7634@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=cwright@cs.sunysb.edu \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.