Re: BUG: NTPL: waitpid() doesn't return?

From: bert hubert (ahu_at_ds9a.nl)
Date: 01/31/04

  • Next message: Matthias Urlichs: "Re: BUG: NTPL: waitpid() doesn't return?"
    Date:	Sat, 31 Jan 2004 16:37:43 +0100
    To: Matthias Urlichs <smurf@smurf.noris.de>
    
    

    On Sat, Jan 31, 2004 at 11:46:06AM +0100, Matthias Urlichs wrote:

    > This partial trace is from Debian's mini-dinstall, which is a
    > multithreaded Python script.
    >
    > What happens here is that it spawns a bunch of threads, then some of
    > these fork+execve external programs which they waitpid() for.
    >
    > Unfortunately, some of these waitpid() calls don't return even though
    > the waited-for process clearly has exited.

    It might be that in the NPTL world only one waitpid() can run per process
    simultaneously? Do you wait for all pids or for a specific one?

    Bert.

    -- 
    http://www.PowerDNS.com      Open source, database driven DNS Software 
    http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Matthias Urlichs: "Re: BUG: NTPL: waitpid() doesn't return?"

    Relevant Pages

    • Re: BUG: NTPL: waitpid() doesnt return?
      ... > It might be that in the NPTL world only one waitpid() can run per process ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: is killing zombies possible w/o a reboot?
      ... to waitpid(), since there isn't waitfor() AFAIK). ... waitpid) failed with ECHILD: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • waipid() block in multi-thread program
      ... I wrote a small test case using waitpid() in multi-thread program, and find it will cause program block sometime. ... After a while the main thread will kill the executable. ... Then both the main thread and the child thread call waitpidto wait for the executable. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)