2 #include <asm/unistd.h>
13 perror_msg_and_skip("setsid");
15 long rc = syscall(__NR_vhangup);
18 * On setsid() success, the new session has no controlling terminal,
19 * therefore a subsequent vhangup() has nothing to hangup.
21 * The system call, however, returns 0 iff the calling process
22 * has CAP_SYS_TTY_CONFIG capability.
24 printf("vhangup() = %s\n", sprintrc(rc));
26 puts("+++ exited with 0 +++");
32 SKIP_MAIN_UNDEFINED("__NR_vhangup")