/libuv/test/ |
H A D | test-signal.c | 52 uv_signal_t signal; in TEST_IMPL() local 56 uv_signal_init(loop, &signal); in TEST_IMPL() 59 ASSERT_OK(uv_signal_start(&signal, signum_test_cb, SIGINT)); in TEST_IMPL() 60 ASSERT_OK(uv_signal_start(&signal, signum_test_cb, SIGBREAK)); in TEST_IMPL() 61 ASSERT_OK(uv_signal_start(&signal, signum_test_cb, SIGHUP)); in TEST_IMPL() 62 ASSERT_OK(uv_signal_start(&signal, signum_test_cb, SIGWINCH)); in TEST_IMPL() 63 ASSERT_OK(uv_signal_start(&signal, signum_test_cb, SIGILL)); in TEST_IMPL() 65 ASSERT_OK(uv_signal_start(&signal, signum_test_cb, SIGFPE)); in TEST_IMPL() 66 ASSERT_OK(uv_signal_start(&signal, signum_test_cb, SIGSEGV)); in TEST_IMPL() 67 ASSERT_OK(uv_signal_start(&signal, signum_test_cb, SIGTERM)); in TEST_IMPL() [all …]
|
H A D | test-eintr-handling.c | 67 uv_signal_t signal; in TEST_IMPL() local 73 ASSERT_OK(uv_signal_init(loop, &signal)); in TEST_IMPL() 74 ASSERT_OK(uv_signal_start(&signal, sig_func, SIGUSR1)); in TEST_IMPL() 88 uv_close((uv_handle_t*) &signal, NULL); in TEST_IMPL()
|
H A D | test-signal-pending-on-close.c | 37 static void stop_loop_cb(uv_signal_t* signal, int signum) { in stop_loop_cb() argument 39 uv_stop(signal->loop); in stop_loop_cb() 42 static void signal_cb(uv_signal_t* signal, int signum) { in signal_cb() argument
|
H A D | test-signal-multiple-loops.c | 171 uv_signal_t signal; in loop_creating_worker() local 178 r = uv_signal_init(loop, &signal); in loop_creating_worker() 181 r = uv_signal_start(&signal, signal_unexpected_cb, SIGTERM); in loop_creating_worker() 184 uv_close((uv_handle_t*) &signal, NULL); in loop_creating_worker()
|
H A D | runner-unix.c | 78 signal(SIGPIPE, SIG_IGN); in platform_init()
|
H A D | test-spawn.c | 1057 ASSERT_PTR_NE(SIG_ERR, signal(SIGTERM, SIG_IGN)); in TEST_IMPL() 1070 ASSERT_PTR_NE(SIG_ERR, signal(SIGTERM, SIG_DFL)); in TEST_IMPL()
|
H A D | test-fs.c | 3800 uv_signal_t signal; in test_fs_partial() local 3826 ASSERT_OK(uv_signal_init(loop, &signal)); in test_fs_partial() 3827 ASSERT_OK(uv_signal_start(&signal, sig_func, SIGUSR1)); in test_fs_partial() 3868 uv_close((uv_handle_t*) &signal, NULL); in test_fs_partial()
|
/libuv/docs/src/ |
H A D | signal.rst | 7 Signal handles implement Unix style signal handling on a per-event loop bases. 36 * Calls to raise() or abort() to programmatically raise a signal are 37 not detected by libuv; these will not trigger a signal watcher. 82 .. c:function:: int uv_signal_init(uv_loop_t* loop, uv_signal_t* signal) 86 .. c:function:: int uv_signal_start(uv_signal_t* signal, uv_signal_cb cb, int signum) 88 Start the handle with the given callback, watching for the given signal. 90 .. c:function:: int uv_signal_start_oneshot(uv_signal_t* signal, uv_signal_cb cb, int signum) 94 Same functionality as :c:func:`uv_signal_start` but the signal handler is reset the moment 95 the signal is received. 97 .. c:function:: int uv_signal_stop(uv_signal_t* signal)
|
H A D | async.rst | 54 …:c:func:`uv_async_send` is `async-signal-safe <https://man7.org/linux/man-pages/man7/signal-safety… 55 It's safe to call this function from a signal handler.
|
H A D | process.rst | 40 will indicate the exit status and the signal that caused the process to 277 Sends the specified signal to the given process handle. Check the documentation 278 on :c:ref:`signal` for signal support, specially on Windows. 282 Sends the specified signal to the given PID. Check the documentation 283 on :c:ref:`signal` for signal support, specially on Windows.
|
H A D | api.rst | 20 signal
|
H A D | poll.rst | 11 rely on the event loop to signal it about the socket status changes, like 17 It is possible that poll handles occasionally signal that a file descriptor is
|
H A D | tty.rst | 110 This function is async signal-safe on Unix platforms but can fail with error
|
H A D | loop.rst | 77 - UV_LOOP_BLOCK_SIGNAL: Block a signal when polling for new events. The 78 second argument to :c:func:`uv_loop_configure` is the signal number.
|
H A D | misc.rst | 688 [--I] signal 0x1a25ea8
|
/libuv/docs/code/ |
H A D | CMakeLists.txt | 32 signal
|
/libuv/docs/code/pipe-echo-server/ |
H A D | main.c | 82 signal(SIGINT, remove_sock); in main()
|
/libuv/ |
H A D | Makefile.am | 82 src/win/signal.c \ 112 src/unix/signal.c \ 255 test/test-signal-multiple-loops.c \ 256 test/test-signal-pending-on-close.c \ 257 test/test-signal.c \
|
H A D | CMakeLists.txt | 217 src/win/signal.c 249 src/unix/signal.c 628 test/test-signal-multiple-loops.c 629 test/test-signal-pending-on-close.c 630 test/test-signal.c
|
H A D | ChangeLog | 190 * win,signal: fix data race dispatching SIGWINCH (Jameson Nash) 395 * unix: reset signal counters after fork (SmorkalovG) 1772 * unix: fix signal handle closing deferral (Ben Noordhuis) 2004 * unix,signal: keep handle active if pending signal (Santiago Gimeno) 2159 * unix: fix a comment typo in signal.c (Evgeny Ermakov) 2261 * doc: describe unix signal handling better (Vladimír Čunát) 2665 * unix: close signal pipe fds on unload (Ben Noordhuis) 3250 * unix: reset signal mask before execve() (Ben Noordhuis) 3460 * win,signal: fix potential deadlock (Bartosz Sosnowski) 5129 * windows: fix console signal handler refcount (李港平) [all …]
|
/libuv/docs/src/guide/ |
H A D | processes.rst | 53 The exit callback will be invoked with the *exit status* and the type of *signal* 138 <http://docs.libuv.org/en/v1.x/signal.html#signal>`_ as well. 143 can only be associated with one signal number, with subsequent calls to 147 .. rubric:: signal/main.c 148 .. literalinclude:: ../../code/signal/main.c
|
H A D | threads.rst | 21 required, signal errors directly via return values, and, as shown in the 252 up a signal handler for termination. 260 When the user triggers the signal by pressing ``Ctrl+C`` we send 288 for a variable that only the main process sets to signal termination. 362 mutexes and rwlocks **DO NOT** work inside a signal handler, whereas
|
H A D | filesystem.rst | 272 signal(SIGPIPE, SIG_IGN)
|
/libuv/src/unix/ |
H A D | process.c | 298 if (SIG_ERR != signal(n, SIG_DFL)) in uv__process_child_init()
|
/libuv/include/ |
H A D | uv.h | 178 XX(SIGNAL, signal) \
|