Home
last modified time | relevance | path

Searched refs:SIGPIPE (Results 1 - 25 of 201) sorted by relevance

123456789

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D28-10.c24 * -> 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 D22-10.c18 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 D3-10.c15 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 D8-11.c26 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 D19-10.c25 * -> 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 D25-10.c17 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 D1-10.c17 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 D12-36.c29 printf("Caught SIGPIPE\n"); in handler()
50 if (sigaction(SIGPIPE, &act, 0) == -1) { in main()
62 if (raise(SIGPIPE) == -1) { in main()
H A D13-10.c30 printf("Caught SIGPIPE\n"); in handler()
51 if (sigaction(SIGPIPE, &act, 0) == -1) { in main()
63 if (raise(SIGPIPE) == -1) { in main()
H A D18-10.c24 * -> 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 D2-10.c14 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 D4-10.c16 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 D6-10.c9 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 D12-10.c31 printf("Caught SIGPIPE\n"); in handler()
52 if (sigaction(SIGPIPE, &act, 0) == -1) { in main()
72 if (raise(SIGPIPE) == -1) { in main()
H A D4-36.c16 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 D8-10.c31 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 Dtest-signal-pending-on-close.c38 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 Dsigpipe.h40 * 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 Dsanei_thread.c368 #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 Dpipe08.c12 * 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 Dfuse_signals.c53 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 Dshrpx_signal.cc113 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 Dstrsignal.c8 && (SIGPIPE == 13) && (SIGALRM == 14) && (SIGTERM == 15) && (SIGSTKFLT == 16) \
31 [SIGPIPE] = 13,
/third_party/libfuse/lib/
H A Dfuse_signals.c72 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 Dwrite05.c52 if (sig == SIGPIPE) in sighandler()
80 SAFE_SIGNAL(SIGPIPE, sighandler); in setup()

Completed in 8 milliseconds

123456789