patch-1.3.73 linux/kernel/exit.c

Next file: linux/kernel/fork.c
Previous file: linux/ipc/msg.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.72/linux/kernel/exit.c linux/kernel/exit.c
@@ -18,6 +18,7 @@
 
 #include <asm/segment.h>
 extern void sem_exit (void);
+extern void acct_process (long exitcode);
 extern void kerneld_exit(void);
 
 int getrusage(struct task_struct *, int, struct rusage *);
@@ -34,7 +35,7 @@
 			return 0;
 		/* some signals are ignored by default.. (but SIGCONT already did its deed) */
 		if ((sa->sa_handler == SIG_DFL) &&
-		    (sig == SIGCONT || sig == SIGCHLD || sig == SIGWINCH))
+		    (sig == SIGCONT || sig == SIGCHLD || sig == SIGWINCH || sig == SIGURG))
 			return 0;
 	}
 	p->signal |= mask;
@@ -509,6 +510,7 @@
 		intr_count = 0;
 	}
 fake_volatile:
+	acct_process(code);
 	current->flags |= PF_EXITING;
 	del_timer(&current->real_timer);
 	sem_exit();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this