Re: Kernel process exit problem

Peter Wächtler <[email protected]>
Newsgroups gmane.linux.ngpt.devel
Message-ID <[email protected]>
Arend-jan Wytzes wrote:
> Hi again, 
> 
> The current kernel patch introduces a problem with process-exit handeling
> for threaded processes that exit due to a signal.
> 
> Lately, I've been spending a lot of time tracking down and fixing this bug.
> The patch is based on kernel 2.4.18 (the latest stable). Because the 
> development (unstable) version of NGPT requires 2.4.19-pre, I decided to
> make a patch against the latest pre-kernel as well.
> 
> To my suprise, the same fix had allready been applied to this pre-release
> kernel. Checking the Changelog for 19-pre, the fix seems to have been 
> applied on June second, but appearantly noone has bothered to post this 
> on the website or to backport this fix into the current ngpt kernel patch. 
> 

Do you mean that patch fragment? This is out of ngpt-2.4.19-pre1.diff


--- linux-2.4.19-pre1/./arch/i386/kernel/signal.c       Mon Feb 25 13:37:53 2002
+++ linux-2.4.19-pre1-ngpt/./arch/i386/kernel/signal.c  Thu Feb 28 13:25:26 2002
@@ -685,10 +685,7 @@
                                 /* FALLTHRU */

                         default:
-                               sigaddset(&current->pending.signal, signr);
-                               recalc_sigpending(current);
-                               current->flags |= PF_SIGNALED;
-                               do_exit(exit_code);
+                               sig_exit(signr, exit_code, &info);
                                 /* NOTREACHED */
                         }
                 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.