summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorShawn Bohrer <shawn.bohrer@gmail.com>2009-12-06 18:30:44 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-09 18:59:52 -0800
commit2770f189b7a5582869c137e5617fb88cc0ad0fd3 (patch)
tree68f965895cb39593b06f7f3f712c0e37125a0636 /Documentation
parent038f7d0027d208df8fd59f5ff2bcf5c2d2fbba3f (diff)
downloadlinux-3.10-2770f189b7a5582869c137e5617fb88cc0ad0fd3.tar.gz
linux-3.10-2770f189b7a5582869c137e5617fb88cc0ad0fd3.tar.bz2
linux-3.10-2770f189b7a5582869c137e5617fb88cc0ad0fd3.zip
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>
Diffstat (limited to 'Documentation')
-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 992e67e6be7..7b3f4936341 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>