On Tue, 2008-03-25 at 19:16 +0300, Oleg Nesterov wrote:If the ptracer wakes up the tracee, then it is no longer in the state TASK_TRACED. You're missing the point. The child _is_ traced before sending the signal. It leaves the notification code in ->exit_code, so that the tracer can fetch it with a call to wait4(). Later, the same field is used to tell the tracee which signal the tracer delivered to it. However, if the tracer dies before it reads (and resets) the value in ->exit_code, the tracee interprets the notification code as the signal to be delivered. Hm, what if the tracer gets actually killed by the kernel, e.g. by the OOM killer? How would you fix that in userspace? Anyway, if you really want to have broken behaviour on unexpected tracer exits, then we'd better not change the tracee's state from TASK_TRACED at all. That way it stays hanging in the system and the admin can decide whether they want to shoot it down with a SIGKILL or attach a debugger to it and somehow resume the process. Arranging for a delivery of a non-existent SIGTRAP seems utterly illogical to me. Cheers, Petr Tesarik --
| David Miller | [GIT]: Networking |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| Miklos Szeredi | Re: [PATCH] Remove process freezer from suspend to RAM pathway |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| David Kastrup | Re: git on MacOSX and files with decomposed utf-8 file names |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Nguyen Thai Ngoc Duy | [WIP] Get rid of msys in favor of busybox port for windows |
| sean | Adding color to git diff output. |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| carlopmart | About Xen: maybe a reiterative question but .. |
| Douglas A. Tutty | Re: Embedding OpenBSD |
| Pavel Emelyanov | [PATCH net-2.6.25 8/11][IPV6] Use sysctl paths to register ipv6 sysctl tables |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Denys | r8169 crash |
| Jeff Kirsher | [NET-NEXT PATCH 1/3] e1000e: add support for the 82567LM-4 device |
