lock_kernel();
daemonize();
- spin_lock_irq(¤t->sigmask_lock);
- sigfillset(¤t->blocked);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
+ sigfillset(¤t->blocked);
recalc_sigpending();
#else
+ spin_lock_irq(¤t->sigmask_lock);
+ sigfillset(¤t->blocked);
recalc_sigpending(current);
-#endif
spin_unlock_irq(¤t->sigmask_lock);
+#endif
sprintf(current->comm, "ldlm_test");
unlock_kernel();