patch-2.1.57 linux/include/linux/sched.h

Next file: linux/include/linux/sunrpc/types.h
Previous file: linux/include/linux/prctl.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.56/linux/include/linux/sched.h linux/include/linux/sched.h
@@ -191,6 +191,7 @@
 	struct task_struct *next_task, *prev_task;
 	struct task_struct *next_run,  *prev_run;
 	int exit_code, exit_signal;
+	int pdeath_signal;  /*  The signal sent when the parent dies  */
 	/* ??? */
 	unsigned long personality;
 	int dumpable:1;
@@ -312,7 +313,7 @@
 /* exec domain */&default_exec_domain, \
 /* binfmt */	NULL, \
 /* schedlink */	&init_task,&init_task, &init_task, &init_task, \
-/* ec,brk... */	0,0,0,0,0, \
+/* ec,brk... */	0,0,0,0,0,0, \
 /* pid etc.. */	0,0,0,0,0, \
 /* suppl grps*/ 0, {0,}, \
 /* proc links*/ &init_task,&init_task,NULL,NULL,NULL, \
@@ -448,6 +449,11 @@
 extern void force_sig(unsigned long sig,struct task_struct * p);
 extern int send_sig(unsigned long sig,struct task_struct * p,int priv);
 extern int in_group_p(gid_t grp);
+
+extern inline int signal_pending(struct task_struct *p)
+{
+	return (p->signal &~ p->blocked) != 0;
+}
 
 extern int request_irq(unsigned int irq,
 		       void (*handler)(int, void *, struct pt_regs *),

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