/dports/math/rumur/rumur-2021.09.29/rumur/src/ |
H A D | process.cc | 30 static int sigchld_pipe[2] = {-1, -1}; variable 38 assert(sigchld_pipe[WRITE_FD] != -1 && in handler() 41 ssize_t w __attribute__((unused)) = write(sigchld_pipe[WRITE_FD], "\0", 1); in handler() 48 if (pipe(sigchld_pipe) < 0) { in init() 55 int r = sigchld_pipe[READ_FD]; in init() 56 int w = sigchld_pipe[WRITE_FD]; in init() 75 for (int &fd : sigchld_pipe) { in init() 170 FD_SET(sigchld_pipe[READ_FD], &readfds); in run() 171 nfds = max(out[READ_FD], sigchld_pipe[READ_FD]); in run() 188 if (FD_ISSET(sigchld_pipe[READ_FD], &readfds)) { in run() [all …]
|
/dports/lang/erlang-runtime22/otp-OTP-22.3.4.24/erts/emulator/sys/unix/ |
H A D | erl_child_setup.c | 131 static int sigchld_pipe[2]; variable 370 res = write(sigchld_pipe[1], buff, sizeof(buff)); in handle_sigchld() 373 ABORT("Failed to write to sigchld_pipe (%d): %d (%d)", sigchld_pipe[1], res, errno); in handle_sigchld() 436 if (pipe(sigchld_pipe) < 0) { in main() 440 SET_CLOEXEC(sigchld_pipe[0]); in main() 441 SET_CLOEXEC(sigchld_pipe[1]); in main() 443 max_fd = max_fd < sigchld_pipe[0] ? sigchld_pipe[0] : max_fd; in main() 479 FD_SET(sigchld_pipe[0], &read_fds); in main() 481 uds_fd, sigchld_pipe[0], max_fd); in main() 540 if (FD_ISSET(sigchld_pipe[0], &read_fds)) { in main() [all …]
|
/dports/lang/erlang-runtime23/otp-OTP-23.3.4.10/erts/emulator/sys/unix/ |
H A D | erl_child_setup.c | 138 static int sigchld_pipe[2]; variable 377 res = write(sigchld_pipe[1], buff, sizeof(buff)); in handle_sigchld() 380 ABORT("Failed to write to sigchld_pipe (%d): %d (%d)", sigchld_pipe[1], res, errno); in handle_sigchld() 462 if (pipe(sigchld_pipe) < 0) { in main() 466 SET_CLOEXEC(sigchld_pipe[0]); in main() 467 SET_CLOEXEC(sigchld_pipe[1]); in main() 469 max_fd = max_fd < sigchld_pipe[0] ? sigchld_pipe[0] : max_fd; in main() 505 FD_SET(sigchld_pipe[0], &read_fds); in main() 507 uds_fd, sigchld_pipe[0], max_fd); in main() 566 if (FD_ISSET(sigchld_pipe[0], &read_fds)) { in main() [all …]
|
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/erts/emulator/sys/unix/ |
H A D | erl_child_setup.c | 144 static int sigchld_pipe[2]; variable 383 res = write(sigchld_pipe[1], buff, sizeof(buff)); in handle_sigchld() 386 ABORT("Failed to write to sigchld_pipe (%d): %d (%d)", sigchld_pipe[1], res, errno); in handle_sigchld() 468 if (pipe(sigchld_pipe) < 0) { in main() 472 SET_CLOEXEC(sigchld_pipe[0]); in main() 473 SET_CLOEXEC(sigchld_pipe[1]); in main() 475 max_fd = max_fd < sigchld_pipe[0] ? sigchld_pipe[0] : max_fd; in main() 511 FD_SET(sigchld_pipe[0], &read_fds); in main() 513 uds_fd, sigchld_pipe[0], max_fd); in main() 572 if (FD_ISSET(sigchld_pipe[0], &read_fds)) { in main() [all …]
|
/dports/lang/erlang-wx/otp-OTP-24.1.7/erts/emulator/sys/unix/ |
H A D | erl_child_setup.c | 144 static int sigchld_pipe[2]; variable 383 res = write(sigchld_pipe[1], buff, sizeof(buff)); in handle_sigchld() 386 ABORT("Failed to write to sigchld_pipe (%d): %d (%d)", sigchld_pipe[1], res, errno); in handle_sigchld() 468 if (pipe(sigchld_pipe) < 0) { in main() 472 SET_CLOEXEC(sigchld_pipe[0]); in main() 473 SET_CLOEXEC(sigchld_pipe[1]); in main() 475 max_fd = max_fd < sigchld_pipe[0] ? sigchld_pipe[0] : max_fd; in main() 511 FD_SET(sigchld_pipe[0], &read_fds); in main() 513 uds_fd, sigchld_pipe[0], max_fd); in main() 572 if (FD_ISSET(sigchld_pipe[0], &read_fds)) { in main() [all …]
|
/dports/lang/erlang/otp-OTP-24.1.7/erts/emulator/sys/unix/ |
H A D | erl_child_setup.c | 144 static int sigchld_pipe[2]; variable 383 res = write(sigchld_pipe[1], buff, sizeof(buff)); in handle_sigchld() 386 ABORT("Failed to write to sigchld_pipe (%d): %d (%d)", sigchld_pipe[1], res, errno); in handle_sigchld() 468 if (pipe(sigchld_pipe) < 0) { in main() 472 SET_CLOEXEC(sigchld_pipe[0]); in main() 473 SET_CLOEXEC(sigchld_pipe[1]); in main() 475 max_fd = max_fd < sigchld_pipe[0] ? sigchld_pipe[0] : max_fd; in main() 511 FD_SET(sigchld_pipe[0], &read_fds); in main() 513 uds_fd, sigchld_pipe[0], max_fd); in main() 572 if (FD_ISSET(sigchld_pipe[0], &read_fds)) { in main() [all …]
|
/dports/lang/erlang-java/otp-OTP-24.1.7/erts/emulator/sys/unix/ |
H A D | erl_child_setup.c | 144 static int sigchld_pipe[2]; variable 383 res = write(sigchld_pipe[1], buff, sizeof(buff)); in handle_sigchld() 386 ABORT("Failed to write to sigchld_pipe (%d): %d (%d)", sigchld_pipe[1], res, errno); in handle_sigchld() 468 if (pipe(sigchld_pipe) < 0) { in main() 472 SET_CLOEXEC(sigchld_pipe[0]); in main() 473 SET_CLOEXEC(sigchld_pipe[1]); in main() 475 max_fd = max_fd < sigchld_pipe[0] ? sigchld_pipe[0] : max_fd; in main() 511 FD_SET(sigchld_pipe[0], &read_fds); in main() 513 uds_fd, sigchld_pipe[0], max_fd); in main() 572 if (FD_ISSET(sigchld_pipe[0], &read_fds)) { in main() [all …]
|
/dports/lang/erlang-runtime21/otp-OTP-21.3.8.24/erts/emulator/sys/unix/ |
H A D | erl_child_setup.c | 131 static int sigchld_pipe[2]; variable 370 res = write(sigchld_pipe[1], buff, sizeof(buff)); in handle_sigchld() 373 ABORT("Failed to write to sigchld_pipe (%d): %d (%d)", sigchld_pipe[1], res, errno); in handle_sigchld() 436 if (pipe(sigchld_pipe) < 0) { in main() 440 SET_CLOEXEC(sigchld_pipe[0]); in main() 441 SET_CLOEXEC(sigchld_pipe[1]); in main() 443 max_fd = max_fd < sigchld_pipe[0] ? sigchld_pipe[0] : max_fd; in main() 479 FD_SET(sigchld_pipe[0], &read_fds); in main() 481 uds_fd, sigchld_pipe[0], max_fd); in main() 540 if (FD_ISSET(sigchld_pipe[0], &read_fds)) { in main() [all …]
|
/dports/x11-wm/awesome/awesome-4.3/ |
H A D | awesome.c | 71 static int sigchld_pipe[2]; variable 122 close(sigchld_pipe[0]); in awesome_atexit() 123 close(sigchld_pipe[1]); in awesome_atexit() 465 int res = write(sigchld_pipe[1], " ", 1); in signal_child() 477 ssize_t result = read(sigchld_pipe[0], &buffer[0], sizeof(buffer)); in reap_children() 673 if (!g_unix_open_pipe(sigchld_pipe, FD_CLOEXEC, NULL)) in main() 676 GIOChannel *channel = g_io_channel_unix_new(sigchld_pipe[0]); in main()
|
/dports/devel/radare2/radare2-5.1.1/binr/r2r/ |
H A D | run.c | 390 static int sigchld_pipe[2]; variable 395 write (sigchld_pipe[1], &b, 1); in handle_sigchld() 401 ssize_t rd = read (sigchld_pipe[0], &b, 1); in sigchld_th() 454 if (pipe (sigchld_pipe) == -1) { in r2r_subprocess_init() 461 close (sigchld_pipe [0]); in r2r_subprocess_init() 462 close (sigchld_pipe [1]); in r2r_subprocess_init() 467 close (sigchld_pipe [0]); in r2r_subprocess_init() 468 close (sigchld_pipe [1]); in r2r_subprocess_init() 478 write (sigchld_pipe[1], &b, 1); in r2r_subprocess_fini() 479 close (sigchld_pipe [1]); in r2r_subprocess_fini() [all …]
|
/dports/devel/dbus/dbus-1.12.20/dbus/ |
H A D | dbus-spawn.c | 1161 int sigchld_pipe[2]; in babysit() local 1173 if (pipe (sigchld_pipe) < 0) in babysit() 1179 babysit_sigchld_pipe = sigchld_pipe[WRITE_END]; in babysit() 1195 pfds[1].fd = sigchld_pipe[READ_END]; in babysit() 1212 if (read (sigchld_pipe[READ_END], &b, 1) == -1) in babysit()
|
/dports/x11-fm/worker/worker-4.10.0/src/ |
H A D | worker.cc | 133 static int sigchld_pipe[2] = { -1, -1 }; variable 141 int tres __attribute__((unused)) = write( sigchld_pipe[1], &buf[0], 1 ); in worker_sighandler() 144 int tres __attribute__((unused)) = write( sigchld_pipe[1], &buf[0], 1 ); in worker_sighandler() 680 if ( pipe( sigchld_pipe ) == -1 ) { in main() 4451 m_waitthread->watchFD2( sigchld_pipe[0] ); in initWaitThread() 4562 FD_SET( sigchld_pipe[0], &rdfs ); in waitForEvent() 4579 sel_ret = select( sigchld_pipe[0] + 1, &rdfs, NULL, NULL, &timeout ); in waitForEvent() 4580 if ( sel_ret == 1 && FD_ISSET( sigchld_pipe[0], &rdfs ) ) { in waitForEvent() 4581 int tres __attribute__((unused)) = read( sigchld_pipe[0], &buf[0], 1 ); in waitForEvent()
|