[PATCH] syscall.2: clarify example, add missing parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



An attempt to clarify example by adding a missing parameter.

---
 man2/syscall.2 |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man2/syscall.2 b/man2/syscall.2
index 0560634..1cca9ce 100644
--- a/man2/syscall.2
+++ b/man2/syscall.2
@@ -205,6 +205,7 @@ architectures may indiscriminately clobber other
registers not listed here.
 #include <unistd.h>
 #include <sys/syscall.h>
 #include <sys/types.h>
+#include <signal.h>

 int
 main(int argc, char *argv[])
@@ -212,7 +213,7 @@ main(int argc, char *argv[])
     pid_t tid;

     tid = syscall(SYS_gettid);
-    tid = syscall(SYS_tgkill, getpid(), tid);
+    tid = syscall(SYS_tgkill, getpid(), tid, SIGHUP);
 }
 .fi
 .SH SEE ALSO
-- 
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux