mirror of https://github.com/mkerrisk/man-pages
syscall.2: Add missing argument in example
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
6ace3248f2
commit
415f7e6317
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue