From: Jeff Dike <jdike@addtoit.com>
To: Stanislaw Gruszka <stf_xl@wp.pl>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] [PATCH] Avoid not intended gdb breakpoints removal
Date: Wed, 5 Dec 2007 20:39:20 -0500 [thread overview]
Message-ID: <20071206013920.GA10961@c2.user-mode-linux.org> (raw)
In-Reply-To: <200712051853.45801.stf_xl@wp.pl>
On Wed, Dec 05, 2007 at 06:53:45PM +0100, Stanislaw Gruszka wrote:
> Sometimes when UML is debugged gdb miss breakpoints.
> So I do fix for UML,
> it simply do not call clone() with both SIGCHLD and CLONE_VM flags together.
> Additionally __WALL flag is used for waitpid() to assure not miss clone
> and normal process events.
Woo! You're my favorite person this week[1].
This has bugged me forever, and I was too scared to go into gdb to
figure out what its problem was.
A couple of comments:
1 - I think I would prefer to use __WCLONE instead of __WALL since
we know what type of process we are creating, and it seems clearer in
the code to say specifically what we want
1a - I think I would like to stick all those waits under some API in
helper.c as we already have an interface for creating children, and as
it stands now, the callers have knowlege about the internal aspects of
child creation that they probably shouldn't.
2 - I want to get this into mainline quickly, and I need a
Signed-off-by: from you before it goes anywhere.
Jeff
[1] Narrowly beating out John Reiser, who will be my favorite person
of the week that he manages to boot UML under valgrind.
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2007-12-06 1:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-05 17:53 [uml-devel] [PATCH] Avoid not intended gdb breakpoints removal Stanislaw Gruszka
2007-12-06 1:39 ` Jeff Dike [this message]
2007-12-06 22:21 ` Stanislaw Gruszka
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=20071206013920.GA10961@c2.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=stf_xl@wp.pl \
--cc=user-mode-linux-devel@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 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.