docbook: fix signal_pending() argument
[linux-2.6.git] / Documentation / DocBook / kernel-hacking.tmpl
index 992e67e..7b3f493 100644 (file)
@@ -352,7 +352,7 @@ asmlinkage long sys_mycall(int arg)
   </para>
 
   <programlisting>
-if (signal_pending()) 
+if (signal_pending(current))
         return -ERESTARTSYS;
   </programlisting>