]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
docbook: fix signal_pending() argument
authorShawn Bohrer <shawn.bohrer@gmail.com>
Mon, 7 Dec 2009 02:30:44 +0000 (18:30 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Dec 2009 02:59:52 +0000 (18:59 -0800)
Since signal_pending() takes a task_struct pointer as an argument, update
the example to pass in 'current'.

Signed-off-by: Shawn Bohrer <shawn.bohrer@gmail.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/DocBook/kernel-hacking.tmpl

index 992e67e6be7fbf34e3259bafaec97918505fbede..7b3f493634133b7cf9ac8a0697074e8185b64096 100644 (file)
@@ -352,7 +352,7 @@ asmlinkage long sys_mycall(int arg)
   </para>
 
   <programlisting>
-if (signal_pending()) 
+if (signal_pending(current))
         return -ERESTARTSYS;
   </programlisting>