summaryrefslogtreecommitdiff
path: root/Documentation/DocBook/kernel-hacking.tmpl
diff options
context:
space:
mode:
authorShawn Bohrer <shawn.bohrer@gmail.com>2009-12-07 02:30:44 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-10 02:59:52 (GMT)
commit2770f189b7a5582869c137e5617fb88cc0ad0fd3 (patch)
tree68f965895cb39593b06f7f3f712c0e37125a0636 /Documentation/DocBook/kernel-hacking.tmpl
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>
Diffstat (limited to 'Documentation/DocBook/kernel-hacking.tmpl')
-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 992e67e..7b3f493 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>