Lines Matching refs:SIGINT
666 // SIGINT isn't
667 EXPECT_OK(pdkill(pd, SIGINT));
672 EXPECT_EQ(0, pdkill(pd, SIGINT));
677 EXPECT_EQ(-1, pdkill(pd, SIGINT));
883 // Child: set a SIGINT handler, notify the parent and sleep.
886 signal(SIGINT, handle_signal);
890 // Note: we could receive the SIGINT just before sleep(), so we use a loop
892 for (int i = 0; i < 50 && !had_signal[SIGINT]; i++) {
895 if (verbose) fprintf(stderr, "[%d] child slept, had[SIGINT]=%d\n",
896 getpid_(), (int)had_signal[SIGINT]);
897 // Return non-zero if we didn't see SIGINT.
898 exit(had_signal[SIGINT] ? 0 : 99);
906 // Interrupt the child once it's registered the SIGINT handler.
910 EXPECT_OK(pdkill(pd, SIGINT));
911 if (verbose) fprintf(stderr, "[%d] sent SIGINT\n", getpid_());
928 // Child: wait for shutdown message. No SIGINT handler. The message should
929 // never be received, since SIGINT should terminate the process.
939 // Kill the child (as it doesn't handle SIGINT).
940 if (verbose) fprintf(stderr, "[%d] sending SIGINT\n", getpid_());
941 EXPECT_OK(pdkill(pd, SIGINT));
997 EXPECT_NOTCAPABLE(pdkill(cap_incapable, SIGINT));
1003 EXPECT_OK(pdkill(cap_capable, SIGINT));