2 * Copyright (c) 2014-2018 The strace developers.
5 * SPDX-License-Identifier: GPL-2.0-or-later
15 const pid_t pid = getpid();
16 int rc = kill(pid, SIGCONT);
18 printf("kill(%d, %d) = %s\n", pid, SIGCONT, sprintrc(rc));
20 printf("kill(%d, %d /* SIGCONT */) = %s\n", pid, SIGCONT, sprintrc(rc));
21 #else /* XLAT_ABBREV */
22 printf("kill(%d, SIGCONT) = %s\n", pid, sprintrc(rc));
25 static const int sigs[] = { 0, 256, -1 };
26 for (unsigned int i = 0; i < ARRAY_SIZE(sigs); ++i) {
27 rc = kill(pid, sigs[i]);
28 printf("kill(%d, %d) = %s\n", pid, sigs[i], sprintrc(rc));
31 printf("+++ exited with 0 +++\n");