/external/valgrind/none/tests/ |
coolo_sigaction.stdout.exp | 1 handled SIGCHLD
|
coolo_sigaction.cpp | 11 printf("handled %s\n", arg == SIGCHLD ? "SIGCHLD" : "?!unexpected signal?!" ); 19 sigaddset(&(act.sa_mask), SIGCHLD); 32 sigaction( SIGCHLD, &act, &oldChildHandlerData );
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/ |
1-3.c | 12 2) Verify the SIGCHLD signal is not in the empty signal set. 13 3) Attempt to remove the SIGCHLD signal from the signal set. 14 4) Verify the SIGCHLD signal is still not in the signal set. 29 if (sigismember(&signalset, SIGCHLD) == 1) { 30 perror("SIGCHLD is already a member of signal set"); 34 sigdelset(&signalset, SIGCHLD); 36 if (sigismember(&signalset, SIGCHLD) == 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/signal/ |
1-1.c | 12 "myhandler" for SIGCHLD. Then another call to signal() is made about 13 SIGCHLD, this time with SIG_DFL as the value of the func parameter. 14 The default action for SIGCHLD is to be ignored, so unless myhandler 15 gets called when SIGCHLD is raised, the test passess, otherwise 29 printf("SIGCHLD called. Inside handler\n"); 35 if (signal(SIGCHLD, myhandler) == SIG_ERR) { 40 if (signal(SIGCHLD, SIG_DFL) != myhandler) { 45 raise(SIGCHLD);
|
2-1.c | 12 "myhandler" for SIGCHLD. Then another call to signal() is made about 13 SIGCHLD, this time with SIG_IGN as the value of the func parameter. 14 SIGCHLD should be ignored now, so unless myhandler gets called when 15 SIGCHLD is raised, the test passes, otherwise returns failure. 28 printf("SIGCHLD called. Inside handler\n"); 34 if (signal(SIGCHLD, myhandler) == SIG_ERR) { 39 if (signal(SIGCHLD, SIG_IGN) != myhandler) { 44 raise(SIGCHLD);
|
3-1.c | 12 "myhandler" for SIGCHLD, and then raising that signal. If the 26 printf("SIGCHLD called. Inside handler\n"); 32 if (signal(SIGCHLD, myhandler) == SIG_ERR) { 37 raise(SIGCHLD);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
3-4.c | 15 2. Set the signal handler for SIGCHLD to handler 17 4. raise SIGCHLD 40 if (sigaction(SIGCHLD, &act, 0) == -1) { 46 if (sigaction(SIGCHLD, 0, &oact) == -1) { 52 if (raise(SIGCHLD) == -1) {
|
1-4.c | 17 2. Use sigaction to setup a signal handler for SIGCHLD 18 3. Raise SIGCHLD. 40 if (sigaction(SIGCHLD, &act, 0) == -1) { 46 if (raise(SIGCHLD) == -1) {
|
28-4.c | 24 * -> register a signal handler for SIGCHLD with signal(). 65 if (signal(SIGCHLD, handler_1) == SIG_ERR) { 85 ret = sigaction(SIGCHLD, &sa, &save); 93 ret = raise(SIGCHLD); 106 ret = sigaction(SIGCHLD, &save, 0); 114 ret = raise(SIGCHLD);
|
22-4.c | 18 3. (child) Setup a signal handler for SIGCHLD with SA_NODEFER set 20 4. (child) raise SIGCHLD 22 6. (child, signal handler) if count is 1 then raise SIGCHLD 44 printf("SIGCHLD caught\n"); 54 printf("Raising SIGCHLD\n"); 55 raise(SIGCHLD); 56 printf("Returning from raising SIGCHLD\n"); 72 if (sigaction(SIGCHLD, &act, 0) == -1) { 78 if (raise(SIGCHLD) == -1) {
|
25-4.c | 17 3. (child) Setup a signal handler for SIGCHLD 18 4. (child) raise SIGCHLD 20 6. (child, signal handler) if count is 1 then raise SIGCHLD 41 printf("SIGCHLD caught\n"); 52 printf("Raising SIGCHLD\n"); 53 raise(SIGCHLD); 54 printf("Returning from raising SIGCHLD\n"); 70 if (sigaction(SIGCHLD, &act, 0) == -1) { 76 if (raise(SIGCHLD) == -1) {
|
8-5.c | 26 printf("Caught SIGCHLD\n"); 32 raise(SIGCHLD); 46 sigaddset(&act.sa_mask, SIGCHLD); 56 if (sigaction(SIGCHLD, &act, 0) == -1) {
|
13-4.c | 31 printf("Caught SIGCHLD\n"); 52 if (sigaction(SIGCHLD, &act, 0) == -1) { 64 if (raise(SIGCHLD) == -1) {
|
2-4.c | 14 1. Call sigaction to set handler for SIGCHLD to use handler1 15 2. Call sigaction again to set handler for SIGCHLD to use handler2, 42 if (sigaction(SIGCHLD, &act, 0) == -1) { 50 if (sigaction(SIGCHLD, &act, &oact) == -1) {
|
4-4.c | 16 3. (child) Setup a signal handler for SIGCHLD with SIGKILL added to 18 4. (child) raise SIGCHLD 54 if (sigaction(SIGCHLD, &act, 0) == -1) { 60 if (raise(SIGCHLD) == -1) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigset/ |
1-1.c | 12 "myhandler" for SIGCHLD. Then another call to sigset() is made about 13 SIGCHLD, this time with SIG_DFL as the value of the func parameter. 14 The default action for SIGCHLD is to be ignored, so unless myhandler 15 gets called when SIGCHLD is raised, the test passess, otherwise 31 printf("SIGCHLD called. Inside handler\n"); 43 if (sigaction(SIGCHLD, &act, 0) != 0) { 48 if (sigset(SIGCHLD, SIG_DFL) != myhandler) { 53 raise(SIGCHLD);
|
4-1.c | 24 printf("SIGCHLD called. Inside handler\n"); 27 if (sigismember(&mask, SIGCHLD)) { 34 if (sigset(SIGCHLD, myhandler) == SIG_ERR) { 39 raise(SIGCHLD);
|
3-1.c | 12 "myhandler" for SIGCHLD, and then raising that signal. If the 28 printf("SIGCHLD called. Inside handler\n"); 34 if (sigset(SIGCHLD, myhandler) == SIG_ERR) { 39 raise(SIGCHLD);
|
7-1.c | 15 * 1. Register SIGCHLD with myhandler 16 * 2. Add SIGCHLD to the process's signal mask using sigset with disp 18 * 3. raise SIGCHLD 19 * 4. remove SIGCHLD from the signal mask 21 * sure that SIGCHLD is still handled by myhandler. 53 rc = sigaction(SIGCHLD, &act, 0); 59 if (sigset(SIGCHLD, SIG_HOLD) == SIG_ERR) { 64 raise(SIGCHLD); 72 rc = sigismember(&pendingset, SIGCHLD); 78 sigrelse(SIGCHLD); [all...] |
6-1.c | 12 1. Register SIGCHLD with myhandler 13 2. Add SIGCHLD to the process's signal mask using sigset with disp 15 3. raise SIGCHLD 16 4. Verify that SIGCHLD is pending. 33 printf("SIGCHLD called. Inside handler\n"); 45 rc = sigaction(SIGCHLD, &act, 0); 51 if (sigset(SIGCHLD, SIG_HOLD) == SIG_ERR) { 56 raise(SIGCHLD); 64 if (sigismember(&pendingset, SIGCHLD) != 1) { 65 printf("Test FAILED: Signal SIGCHLD wasn't hold.\n") [all...] |
8-1.c | 26 sigaddset(&st, SIGCHLD); 33 if (sigset(SIGCHLD, SIG_HOLD) != SIG_HOLD) {
|
5-1.c | 32 int siglist[] = { SIGABRT, SIGALRM, SIGBUS, SIGCHLD, 68 if (sigset(SIGCHLD, myhandler) == SIG_ERR) { 73 raise(SIGCHLD);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/subprocessdata/ |
sigchild_ignore.py | 5 signal.signal(signal.SIGCHLD, signal.SIG_IGN)
|
/prebuilts/go/darwin-x86/test/ |
sigchld.go | 8 // Test that a program can survive SIGCHLD. 15 syscall.Kill(syscall.Getpid(), syscall.SIGCHLD) 16 println("survived SIGCHLD")
|
/prebuilts/go/linux-x86/test/ |
sigchld.go | 8 // Test that a program can survive SIGCHLD. 15 syscall.Kill(syscall.Getpid(), syscall.SIGCHLD) 16 println("survived SIGCHLD")
|