
rdunlap at xenotime
Nov 4, 2009, 4:04 PM
Post #1 of 1
(30 views)
Permalink
|
|
[PATCH 4/8] docbook: signal_pending has an argument
|
|
From: Shawn Bohrer <shawn.bohrer[at]gmail.com> Subject: 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[at]gmail.com> Signed-off-by: Randy Dunlap <randy.dunlap[at]oracle.com> --- Documentation/DocBook/kernel-hacking.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- lnx-2632-rc6.orig/Documentation/DocBook/kernel-hacking.tmpl +++ lnx-2632-rc6/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> -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo[at]vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|