PATCH: clear blocked signals on exec

From: Tim Hockin (thockin@isunix.it.ilstu.edu)
Date: Mon Jul 03 2000 - 23:02:32 EST


Fixes bug where exec'ed processes inherit their parents blocked signals.

--- linux-2.2.16/fs/exec.c.orig Sun Jul 2 20:38:14 2000
+++ linux-2.2.16/fs/exec.c Sun Jul 2 20:24:48 2000
@@ -538,6 +538,7 @@
         current->self_exec_id++;
 
         flush_signal_handlers(current);
+ sigemptyset(&current->blocked);
         flush_old_files(current->files);
 
         return 0;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:14 EST