]> granicus.if.org Git - strace/blob - tests/getpid.c
strace: terminate itself if interrupted by a signal
[strace] / tests / getpid.c
1 #include "tests.h"
2 #include <asm/unistd.h>
3
4 #ifdef __NR_getpid
5
6 # include <stdio.h>
7 # include <unistd.h>
8
9 int
10 main(void)
11 {
12         printf("getpid() = %ld\n", syscall(__NR_getpid));
13         puts("+++ exited with 0 +++");
14         return 0;
15 }
16
17 #else
18
19 SKIP_MAIN_UNDEFINED("__NR_getpid")
20
21 #endif