/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
H A D | 28-10.c | 24 * -> register a signal handler for SIGPIPE with signal(). 63 if (signal(SIGPIPE, handler_1) == SIG_ERR) { in main() 83 ret = sigaction(SIGPIPE, &sa, &save); in main() 91 ret = raise(SIGPIPE); in main() 104 ret = sigaction(SIGPIPE, &save, 0); in main() 112 ret = raise(SIGPIPE); in main()
|
H A D | 22-10.c | 18 3. (child) Setup a signal handler for SIGPIPE with SA_NODEFER set 20 4. (child) raise SIGPIPE 22 6. (child, signal handler) if count is 1 then raise SIGPIPE 43 printf("SIGPIPE caught\n"); in handler() 53 printf("Raising SIGPIPE\n"); in handler() 54 raise(SIGPIPE); in handler() 55 printf("Returning from raising SIGPIPE\n"); in handler() 71 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 77 if (raise(SIGPIPE) == -1) { in main()
|
H A D | 3-10.c | 15 2. Set the signal handler for SIGPIPE to handler 17 4. raise SIGPIPE 40 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 46 if (sigaction(SIGPIPE, 0, &oact) == -1) { in main() 52 if (raise(SIGPIPE) == -1) { in main()
|
H A D | 8-11.c | 26 printf("Caught SIGPIPE\n"); in SIGPIPE_handler() 32 raise(SIGPIPE); in SIGQUIT_handler() 46 sigaddset(&act.sa_mask, SIGPIPE); in main() 56 if (sigaction(SIGPIPE, &act, 0) == -1) { in main()
|
H A D | 19-10.c | 25 * -> register a handler for SIGPIPE with SA_SIGINFO, and a known function 27 * -> raise SIGPIPE, and check the function has been called. 50 if (info->si_signo != SIGPIPE) { in handler() 84 /* Install the signal handler for SIGPIPE */ in main() 85 ret = sigaction(SIGPIPE, &sa, 0); in main() 98 ret = raise(SIGPIPE); in main() 101 perror("Failed to raise SIGPIPE"); in main()
|
H A D | 25-10.c | 17 3. (child) Setup a signal handler for SIGPIPE 18 4. (child) raise SIGPIPE 20 6. (child, signal handler) if count is 1 then raise SIGPIPE 41 printf("SIGPIPE caught\n"); in handler() 52 printf("Raising SIGPIPE\n"); in handler() 53 raise(SIGPIPE); in handler() 54 printf("Returning from raising SIGPIPE\n"); in handler() 70 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 76 if (raise(SIGPIPE) == -1) { in main()
|
H A D | 1-10.c | 17 2. Use sigaction to setup a signal handler for SIGPIPE 18 3. Raise SIGPIPE. 40 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 46 if (raise(SIGPIPE) == -1) { in main()
|
H A D | 12-36.c | 29 printf("Caught SIGPIPE\n"); in handler() 50 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 62 if (raise(SIGPIPE) == -1) { in main()
|
H A D | 13-10.c | 30 printf("Caught SIGPIPE\n"); in handler() 51 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 63 if (raise(SIGPIPE) == -1) { in main()
|
H A D | 18-10.c | 24 * -> register a handler for SIGPIPE without SA_SIGINFO, and a known function 26 * -> raise SIGPIPE, and check the function has been called. 66 /* Install the signal handler for SIGPIPE */ in main() 67 ret = sigaction(SIGPIPE, &sa, 0); in main() 80 ret = raise(SIGPIPE); in main() 83 perror("Failed to raise SIGPIPE"); in main()
|
H A D | 2-10.c | 14 1. Call sigaction to set handler for SIGPIPE to use handler1 15 2. Call sigaction again to set handler for SIGPIPE to use handler2, 40 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 48 if (sigaction(SIGPIPE, &act, &oact) == -1) { in main()
|
H A D | 4-10.c | 16 3. (child) Setup a signal handler for SIGPIPE with SIGKILL added to 18 4. (child) raise SIGPIPE 54 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 60 if (raise(SIGPIPE) == -1) { in main()
|
H A D | 6-10.c | 9 setting the SA_INFO bit in the signal mask for SIGPIPE will result 38 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 44 if (raise(SIGPIPE) == -1) { in main()
|
H A D | 12-10.c | 31 printf("Caught SIGPIPE\n"); in handler() 52 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 72 if (raise(SIGPIPE) == -1) { in main()
|
H A D | 4-36.c | 16 3. (child) Setup a signal handler for SIGPIPE with SIGSTOP added to 18 4. (child) raise SIGPIPE 53 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 59 if (raise(SIGPIPE) == -1) { in main()
|
H A D | 8-10.c | 31 printf("Caught SIGPIPE\n"); in SIGPIPE_handler() 47 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 62 if (raise(SIGPIPE) == -1) { in main()
|
/third_party/libuv/test/ |
H A D | test-signal-pending-on-close.c | 38 ASSERT_EQ(signum, SIGPIPE); in stop_loop_cb() 69 ASSERT_OK(uv_signal_start(&signal_hdl, signal_cb, SIGPIPE)); in TEST_IMPL() 86 /* cause a SIGPIPE on write in next iteration */ in TEST_IMPL() 101 ASSERT_OK(uv_signal_start(&signal_hdl, stop_loop_cb, SIGPIPE)); in TEST_IMPL() 104 ASSERT_OK(uv_kill(uv_os_getpid(), SIGPIPE)); in TEST_IMPL()
|
/third_party/curl/lib/ |
H A D | sigpipe.h | 40 * sigpipe_ignore() makes sure we ignore SIGPIPE while running libcurl 53 sigaction(SIGPIPE, NULL, &ig->old_pipe_act); in sigpipe_ignore() 57 sigaction(SIGPIPE, &action, NULL); in sigpipe_ignore() 63 * and SIGPIPE handling. It MUST only be called after a corresponding 70 sigaction(SIGPIPE, &ig->old_pipe_act, NULL); in sigpipe_restore()
|
/third_party/backends/sanei/ |
H A D | sanei_thread.c | 368 #ifdef SIGPIPE in restore_sigpipe() 371 if( sigaction( SIGPIPE, NULL, &act ) == 0 ) { in restore_sigpipe() 378 DBG( 2, "restoring SIGPIPE to SIG_DFL\n" ); in restore_sigpipe() 379 sigaction( SIGPIPE, &act, NULL ); in restore_sigpipe() 417 #ifdef SIGPIPE in sanei_thread_begin() 420 /* if signal handler for SIGPIPE is SIG_DFL, replace by SIG_IGN */ in sanei_thread_begin() 421 if( sigaction( SIGPIPE, NULL, &act ) == 0 ) { in sanei_thread_begin() 428 DBG( 2, "setting SIGPIPE to SIG_IGN\n" ); in sanei_thread_begin() 429 sigaction( SIGPIPE, &act, NULL ); in sanei_thread_begin()
|
/third_party/ltp/testcases/kernel/syscalls/pipe/ |
H A D | pipe08.c | 12 * reading will generate a SIGPIPE signal and write will fail with 23 if (sig == SIGPIPE) in sighandler() 44 SAFE_SIGNAL(SIGPIPE, sighandler); in setup()
|
/third_party/ntfs-3g/libfuse-lite/ |
H A D | fuse_signals.c | 53 set_one_signal_handler(SIGPIPE, SIG_IGN, 0) == -1) in fuse_set_signal_handlers() 71 set_one_signal_handler(SIGPIPE, SIG_IGN, 1); in fuse_remove_signal_handlers()
|
/third_party/nghttp2/src/ |
H A D | shrpx_signal.cc | 113 constexpr auto main_proc_ign_signals = std::array<int, 1>{SIGPIPE}; 119 GRACEFUL_SHUTDOWN_SIGNAL, RELOAD_SIGNAL, SIGPIPE};
|
/third_party/musl/src/string/ |
H A D | strsignal.c | 8 && (SIGPIPE == 13) && (SIGALRM == 14) && (SIGTERM == 15) && (SIGSTKFLT == 16) \ 31 [SIGPIPE] = 13,
|
/third_party/libfuse/lib/ |
H A D | fuse_signals.c | 72 set_one_signal_handler(SIGPIPE, do_nothing, 0) == -1) in fuse_set_signal_handlers() 90 set_one_signal_handler(SIGPIPE, do_nothing, 1); in fuse_remove_signal_handlers()
|
/third_party/ltp/testcases/kernel/syscalls/write/ |
H A D | write05.c | 52 if (sig == SIGPIPE) in sighandler() 80 SAFE_SIGNAL(SIGPIPE, sighandler); in setup()
|