Lines Matching refs:prctl
10 * Test PR_SET_CHILD_SUBREAPER and PR_GET_CHILD_SUBREAPER of prctl(2).
25 * "prctl: add PR_{SET,GET}_CHILD_SUBREAPER to allow simple process supervision"
34 #include <sys/prctl.h>
37 #include "lapi/prctl.h"
45 TEST(prctl(PR_GET_CHILD_SUBREAPER, &get_val));
47 tst_res(TFAIL | TTERRNO, "prctl(PR_GET_CHILD_SUBREAPER) failed");
52 tst_res(TPASS, "prctl(PR_GET_CHILD_SUBREAPER) got expected %d",
55 tst_res(TFAIL, "prctl(PR_GET_CHILD_SUBREAPER) got %d, expected %d",
68 TEST(prctl(PR_SET_CHILD_SUBREAPER, 1));
72 "prctl() doesn't support PR_SET_CHILD_SUBREAPER");
75 "prctl(PR_SET_CHILD_SUBREAPER) failed");
80 tst_res(TPASS, "prctl(PR_SET_CHILD_SUBREAPER) succeeded");