1 /*
2 * Copyright (c) 2016-2020 The strace developers.
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8 #include "tests.h"
9 #include "pidns.h"
10
11 #include <stdio.h>
12 #include <unistd.h>
13
14 int
15 main(void)
16 {
17 PIDNS_TEST_INIT;
18
19 pid_t pid = getpid();
20 pidns_print_leader();
21 printf("getsid(%d%s) = %d%s\n", pid, pidns_pid2str(PT_TGID),
22 getsid(pid), pidns_pid2str(PT_SID));
23
24 pidns_print_leader();
25 puts("+++ exited with 0 +++");
26 return 0;
27 }