blob: ba903190270e3022a65d4f2f1ae49c21a5044365 [file] [log] [blame]
#include "tests.h"
#include <sys/syscall.h>
#ifdef __NR_vhangup
# include <stdio.h>
# include <unistd.h>
int
main(void)
{
if (setsid() == -1)
perror_msg_and_skip("setsid");
long rc = syscall(__NR_vhangup);
printf("vhangup() = %ld %s (%m)\n", rc, errno2name());
puts("+++ exited with 0 +++");
return 0;
}
#else
SKIP_MAIN_UNDEFINED("__NR_vhangup")
#endif