syscall.2: Add missing argument in example

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Johan Erlandsson 2013-08-09 09:33:51 +02:00 committed by Michael Kerrisk
parent 6ace3248f2
commit 415f7e6317
1 changed files with 2 additions and 1 deletions

View File

@ -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