linux-um archives
 help / color / mirror / Atom feed
From: Werner Almesberger <wa@almesberger.net>
To: BlaisorBlade <blaisorblade_spam@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net,
	user-mode-linux-user@lists.sourceforge.net,
	Gerd Knorr <kraxel@bytesex.org>,
	Lorenzo Colitti <lorenzo@colitti.com>,
	Massimo Rimondini <rimondin@dia.uniroma3.it>
Subject: Re: [uml-devel] Re: [uml-user] Host processes never terminate on 2.6.9rc3 host (stuck in ptrace_stop)
Date: Tue, 19 Oct 2004 13:15:53 -0300	[thread overview]
Message-ID: <20041019131553.A18872@almesberger.net> (raw)
In-Reply-To: <200410191747.49906.blaisorblade_spam@yahoo.it>; from blaisorblade_spam@yahoo.it on Tue, Oct 19, 2004 at 05:47:49PM +0200

BlaisorBlade wrote:
> Why? This does not make sense, IMHO - after a SIGCONT it should keep running  
> until something *requests* it stopping - or not?

Well, depends on what constellation we have: if the ptracer is
already dead, this should work. If the ptracer is still alive, we
may return to the same state quickly (e.g. if both sides aren't
interactive anyway). Of course, one could argue that, in the
latter case, allowing the ptracer to override SIGKILL is a
feature (in any case, the ptracer should be able to keep the
dying process for examination).

Part of the problem is of course that there's no clear and
comprehensive definition of what ptrace should do. It would be
nice if the POSIX folks would tackle this :)

> I'm not finding a clue in the sources... it's quite difficult.

Yeah, when I spotted it in 2.5.44, I didn't have the stomach to
actually fix it either, and just reported it, hoping that some
other brave soul would step up. That was about 1.5 years ago :-(

> I remember that on Slackware, when doing "init 1" it sends even kill -CONT to 
> all processes, so either they think it's correct or they want to workaround 
> an issue existing for lots of kernel releases.

My bet would be on the workaround :-)

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-10-19 16:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4173F1FD.6080004@colitti.com>
     [not found] ` <87d5zgrkm2.fsf@bytesex.org>
2004-10-18 19:18   ` [uml-devel] Re: [uml-user] Host processes never terminate on 2.6.9rc3 host (stuck in ptrace_stop) BlaisorBlade
2004-10-18 21:26     ` Gerd Knorr
2004-10-18 22:23       ` BlaisorBlade
2004-10-19  5:00         ` Werner Almesberger
2004-10-19 15:47           ` BlaisorBlade
2004-10-19 16:15             ` Werner Almesberger [this message]
2004-10-19 17:58               ` Gerd Knorr
2004-10-20 23:54           ` Michael Richardson
2004-10-21  7:57             ` Gerd Knorr
2004-10-19  6:59         ` Henrik Nordstrom
2004-10-19  7:26           ` Gerd Knorr
2004-10-19  8:47             ` Henrik Nordstrom
2004-10-19  9:04               ` Gerd Knorr
2004-10-19  7:18         ` Gerd Knorr

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=20041019131553.A18872@almesberger.net \
    --to=wa@almesberger.net \
    --cc=blaisorblade_spam@yahoo.it \
    --cc=kraxel@bytesex.org \
    --cc=lorenzo@colitti.com \
    --cc=rimondin@dia.uniroma3.it \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=user-mode-linux-user@lists.sourceforge.net \
    /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