patch-2.1.71 linux/drivers/ap1000/ddv.c

Next file: linux/drivers/block/Config.in
Previous file: linux/drivers/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.70/linux/drivers/ap1000/ddv.c linux/drivers/ap1000/ddv.c
@@ -363,7 +363,10 @@
 	current->session = 1;
 	current->pgrp = 1;
 	sprintf(current->comm, "ddv_daemon");
-	current->blocked = ~0UL; /* block all signals */
+	spin_lock_irq(&current->sigmask_lock);
+	sigfillset(&current->blocked); /* block all signals */
+	recalc_sigpending(current);
+	spin_unlock_irq(&current->sigmask_lock);
   
 	/* Give it a realtime priority. */
 	current->policy = SCHED_FIFO;

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