mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* gzip zombie / spawned from init
@ 2005-06-14  8:54 Nico Schottelius
  2005-06-14 10:54 ` Bart Hartgers
  0 siblings, 1 reply; 6+ messages in thread
From: Nico Schottelius @ 2005-06-14  8:54 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

Hello!

I wrote an init replacement (cinit), which is now in the beta-phase.
The only problem I do have currently is that when calling
'loadkeys dvorak' directly from init (without a shell or anything)
it will leave behind a gzip zombie (which was forked by loadkeys).

Now my question is: Is that a problem of loadkeys or from my init
and what could be the reasons that it's still there?

cinit forks() loadkeys and does waitpid() for it. There is no
loadkeys zombie, only gzip.

Thanks for any input,

Nico

P.S.: Replying to me directly will result in a confirmation mail,
      I'll read lkml directly anyhow.

-- 
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org

[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: gzip zombie / spawned from init
@ 2005-06-14 16:07 Chad Kitching
  0 siblings, 0 replies; 6+ messages in thread
From: Chad Kitching @ 2005-06-14 16:07 UTC (permalink / raw)
  To: Nico Schottelius, Bart Hartgers; +Cc: linux-kernel

From: Nico Schottelius
>
>Well, wait waitpid(-1, ...) cannot be used, as there are many other
>children (the system is booting up at the time the gzip process
>becomes a zombie).
>
try waitpid(-1, &status, WNOHANG)

You will need to implement this in your replacement init because 
one of init's jobs is to wait on unparented zombie tasks.  In the 
sysvinit package, see chld_handler() in init.c which handles the 
SIGCHLD signal.

Basically, I believe all you need to do is waitpid() in the SIGCHLD
handler until you get a 0 return code.

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

end of thread, other threads:[~2005-06-14 16:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-14  8:54 gzip zombie / spawned from init Nico Schottelius
2005-06-14 10:54 ` Bart Hartgers
2005-06-14 11:03   ` Nico Schottelius
2005-06-14 11:32   ` Måns Rullgård
2005-06-14 12:19     ` Richard B. Johnson
2005-06-14 16:07 Chad Kitching

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®