mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* BUG can fill process table
@ 2001-08-03 12:18 André Cruz
  2001-08-03 19:44 ` Andrew Morton
  0 siblings, 1 reply; 6+ messages in thread
From: André Cruz @ 2001-08-03 12:18 UTC (permalink / raw)
  To: linux-kernel

When a process (say dhcpcd) changes the IFF_UP flag to TRUE on an
interface (say eth0) to bring it up, a new process is created named
after the interface (eth0 in this case) and it's PPID is dhcpcd. 

If dhcpcd later changes the IFF_UP flag to FALSE to bring the interface
down, the eth0 process dies but stays as a zombie. The problem is that
dhcpcd never receives a sigchld (suposedly eth0 is it's child) and even
if it executes a wait() no process is reaped and wait() returns -1. 

The worse part of this is that when dhcpcd wants to bring up the
interface again a NEW eth0 process is created and so this starts to fill
up the process table. 

I see two solutions for this: either the interface process start with a
PPID of 1 (I noticed that init has no problems dealing with them when
they die) or dhcpcd should receive a sigchld and be able to reap them. 

Btw why are these process even created? 2.2 didn't do it I think.

I don't know where the problem lies so if someone could tell me who to
contact about this that would be great. Or maybe if this is already
known?

Thanks


----------
André Cruz


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-08-03 22:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-03 12:18 BUG can fill process table André Cruz
2001-08-03 19:44 ` Andrew Morton
2001-08-03 19:58   ` link status changes forwarded to userspace? Anders Eriksson
2001-08-03 20:06     ` Justin Guyett
2001-08-03 20:09   ` BUG can fill process table André Cruz
2001-08-03 22:57   ` André Cruz

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®