Skip to content

Commit

Permalink
docbook: fix signal_pending() argument
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn Bohrer authored and Linus Torvalds committed Dec 10, 2009
1 parent 038f7d0 commit 2770f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/DocBook/kernel-hacking.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ asmlinkage long sys_mycall(int arg)
</para>

<programlisting>
if (signal_pending())
if (signal_pending(current))
return -ERESTARTSYS;
</programlisting>

Expand Down

0 comments on commit 2770f18

Please sign in to comment.