Home
last modified time | relevance | path

Searched refs:mapped_fds (Results 1 – 5 of 5) sorted by relevance

/dports/www/h2o-devel/h2o-dcc7134/lib/common/
H A Dserverutil.c165 if (mapped_fds != NULL) { in h2o_spawnp()
166 for (; *mapped_fds != -1; mapped_fds += 2) { in h2o_spawnp()
167 if (mapped_fds[0] != mapped_fds[1]) { in h2o_spawnp()
168 if (mapped_fds[1] != -1) in h2o_spawnp()
169 dup2(mapped_fds[0], mapped_fds[1]); in h2o_spawnp()
170 close(mapped_fds[0]); in h2o_spawnp()
223 if (mapped_fds != NULL) { in h2o_spawnp()
224 for (; *mapped_fds != -1; mapped_fds += 2) { in h2o_spawnp()
225 if (mapped_fds[1] != -1) in h2o_spawnp()
226 posix_spawn_file_actions_adddup2(&file_actions, mapped_fds[0], mapped_fds[1]); in h2o_spawnp()
[all …]
/dports/www/h2o-devel/h2o-dcc7134/lib/handler/
H A Daccess_log.c89 int mapped_fds[] = {pipefds[0], 0, /* map pipefds[0] to stdin */ in h2o_access_log_open_log() local
91 if ((pid = h2o_spawnp(argv[0], argv, mapped_fds, 0)) == -1) { in h2o_access_log_open_log()
/dports/www/h2o-devel/h2o-dcc7134/include/h2o/
H A Dserverutil.h71 pid_t h2o_spawnp(const char *cmd, char *const *argv, const int *mapped_fds, int clocexec_mutex_is_l…
/dports/www/h2o-devel/h2o-dcc7134/lib/handler/configurator/
H A Dfastcgi.c182 int mapped_fds[] = {listen_fd, 0, /* listen_fd to 0 */ in create_spawnproc() local
185 pid_t pid = h2o_spawnp(argv[0], argv, mapped_fds, 0); in create_spawnproc()
/dports/www/h2o-devel/h2o-dcc7134/src/
H A Dmain.c2538 …int mapped_fds[] = {pipefds[0], 0, /* output of the pipe is connected to STDIN of the spawned proc… in popen_crash_handler() local
2541 if (h2o_spawnp(cmd_fullpath, argv, mapped_fds, 0) == -1) { in popen_crash_handler()