From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev zombies
Date: Sun, 06 Jun 2004 13:16:22 +0000 [thread overview]
Message-ID: <20040606131622.GB15502@vrfy.org> (raw)
In-Reply-To: <200406011914.13245.mbuesch@freenet.de>
[-- Attachment #1: Type: text/plain, Size: 898 bytes --]
On Sun, Jun 06, 2004 at 01:16:05PM +0200, Michael Buesch wrote:
> On Sunday 06 June 2004 12:52, you wrote:
> > On Sun, Jun 06, 2004 at 12:08:09PM +0200, Michael Buesch wrote:
> >
> > > And my zombie problem is still there. :)
> > >
> > > And again: I'm using klibc. With glibc everything seems to work fine.
> > > (haven't checked the sig_handler() stuff, but at least there are no
> > > zombies)
> >
> > Could you please test this patch. If this fixes the problem on your box,
> > I will look deeper into it.
> [SNIP]
>
> Fixes both problems.
Michael, you were right, it was the signal handler. Good catch.
The problem was caused by using register- instead of the expected stack-
parameters for the signal handling function. Adding a attribute to prevent
the 'optimization', should fix it.
It would be great, if you are able to test it another time with the reenabled
regparms.
thanks,
Kay
[-- Attachment #2: 01-udev-regparm-fix.patch --]
[-- Type: text/plain, Size: 292 bytes --]
===== udevd.c 1.32 vs edited =====
--- 1.32/udevd.c Fri May 21 06:13:45 2004
+++ edited/udevd.c Sun Jun 6 14:18:23 2004
@@ -306,7 +306,7 @@
return;
}
-static void sig_handler(int signum)
+__attribute__ ((regparm(0))) static void sig_handler(int signum)
{
int rc;
switch (signum) {
next prev parent reply other threads:[~2004-06-06 13:16 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-01 17:14 udev zombies Michael Buesch
2004-06-02 16:53 ` Greg KH
2004-06-02 18:26 ` Michael Buesch
2004-06-03 8:24 ` Harald Hoyer
2004-06-03 8:27 ` Harald Hoyer
2004-06-03 8:54 ` jnf
2004-06-04 1:45 ` jnf
2004-06-04 8:03 ` Kay Sievers
2004-06-04 8:36 ` jnf
2004-06-04 8:39 ` jnf
2004-06-04 9:32 ` Kay Sievers
2004-06-04 17:23 ` jnf
2004-06-06 10:08 ` Michael Buesch
2004-06-06 10:52 ` Kay Sievers
2004-06-06 11:16 ` Michael Buesch
2004-06-06 13:16 ` Kay Sievers [this message]
2004-06-06 13:38 ` Michael Buesch
2004-06-06 23:37 ` Kay Sievers
2004-06-07 2:20 ` Greg KH
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=20040606131622.GB15502@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).