patch-2.1.68 linux/fs/exec.c

Next file: linux/fs/fcntl.c
Previous file: linux/fs/dcache.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.67/linux/fs/exec.c linux/fs/exec.c
@@ -459,18 +459,10 @@
  * so that a new one can be started
  */
 
-static inline void flush_old_signals(struct signal_struct *sig)
+static inline void flush_old_signals(struct task_struct *t)
 {
-	int i;
-	struct sigaction * sa = sig->action;
-
-	for (i=32 ; i != 0 ; i--) {
-		sa->sa_mask = 0;
-		sa->sa_flags = 0;
-		if (sa->sa_handler != SIG_IGN)
-			sa->sa_handler = NULL;
-		sa++;
-	}
+	flush_signals(t);
+	flush_signal_handlers(t);
 }
 
 static inline void flush_old_files(struct files_struct * files)
@@ -531,7 +523,7 @@
 	    permission(bprm->dentry->d_inode,MAY_READ))
 		current->dumpable = 0;
 
-	flush_old_signals(current->sig);
+	flush_old_signals(current);
 	flush_old_files(current->files);
 
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov