mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: Ingo Molnar <mingo@elte.hu>, Andrew Morton <akpm@osdl.org>,
	torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] use pid_alive in proc_pid_status
Date: Thu, 2 Dec 2004 17:04:17 -0800	[thread overview]
Message-ID: <200412030104.iB314HtA001566@magilla.sf.frob.com> (raw)
In-Reply-To: Manfred Spraul's message of  Monday, 29 November 2004 18:58:30 +0100 <41AB6346.2080601@colorfullife.com>

> But I don't understand the lines in wait_task_zombie that reset 
> exit_state from DEAD to ZOMBIE, so perhaps I overlook something.

This happens when a sys_wait* call tries to reap a process, but then has
some problem like EFAULT.  It then abandons the reaping attempt by turning
DEAD back into ZOMBIE, so another sys_wait* call can succeed later.  So,
during this brief window it can be in DEAD though it in fact is never
reaped and the PID remains bound to that task_struct throughout.
If you don't want to rule out ZOMBIE, you can't really rule out DEAD.


Thanks,
Roland

      reply	other threads:[~2004-12-03  1:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-28 11:24 Manfred Spraul
2004-11-28 23:20 ` Linus Torvalds
2004-11-29  6:21 ` Andrew Morton
2004-11-29  9:41   ` Ingo Molnar
2004-11-29 17:58     ` Manfred Spraul
2004-12-03  1:04       ` Roland McGrath [this message]

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=200412030104.iB314HtA001566@magilla.sf.frob.com \
    --to=roland@redhat.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.com \
    --cc=mingo@elte.hu \
    --cc=torvalds@osdl.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

all inboxes | Powered by JetHome®