summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Bohrer <shawn.bohrer@gmail.com>2009-12-07 05:30:44 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-10 05:59:52 +0300
commit2770f189b7a5582869c137e5617fb88cc0ad0fd3 (patch)
tree68f965895cb39593b06f7f3f712c0e37125a0636
parent038f7d0027d208df8fd59f5ff2bcf5c2d2fbba3f (diff)
downloadlinux-2770f189b7a5582869c137e5617fb88cc0ad0fd3.tar.xz
docbook: fix signal_pending() argument
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>
-rw-r--r--Documentation/DocBook/kernel-hacking.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/DocBook/kernel-hacking.tmpl b/Documentation/DocBook/kernel-hacking.tmpl
index 992e67e6be7f..7b3f49363413 100644
--- a/Documentation/DocBook/kernel-hacking.tmpl
+++ b/Documentation/DocBook/kernel-hacking.tmpl
@@ -352,7 +352,7 @@ asmlinkage long sys_mycall(int arg)
</para>
<programlisting>
-if (signal_pending())
+if (signal_pending(current))
return -ERESTARTSYS;
</programlisting>