mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
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>
This commit is contained in:
parent
038f7d0027
commit
2770f189b7
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ asmlinkage long sys_mycall(int arg)
|
|||
</para>
|
||||
|
||||
<programlisting>
|
||||
if (signal_pending())
|
||||
if (signal_pending(current))
|
||||
return -ERESTARTSYS;
|
||||
</programlisting>
|
||||
|
||||
|
|
Loading…
Reference in a new issue