Skip to content
Snippets Groups Projects
Commit c012b1a8 authored by Simon McVittie's avatar Simon McVittie
Browse files

adverb: Don't interfere with child process's stdin


We want this to be as similar as possible to exec'ing the child
process directly, so give it our stdin as its stdin.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent b18fcde8
No related branches found
No related tags found
No related merge requests found
...@@ -440,7 +440,8 @@ main (int argc, ...@@ -440,7 +440,8 @@ main (int argc,
command_and_args, command_and_args,
my_environ, my_environ,
(G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD | (G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD |
G_SPAWN_LEAVE_DESCRIPTORS_OPEN), G_SPAWN_LEAVE_DESCRIPTORS_OPEN |
G_SPAWN_CHILD_INHERITS_STDIN),
child_setup_cb, &original_stdout_fd, child_setup_cb, &original_stdout_fd,
&child_pid, &child_pid,
&local_error)) &local_error))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment