Child process using boost::process::child reading some characters from STDIN

40 views Asked by At

Main process is spawning a child process as follows:

bp = boost::process
bp::child(cmd.c_str(), bp::std_out > bp::null, bp::std_err > bp::null, boost::this_process::environment());

where cmd = "setsid <some other executable>"

Now, while working on the main process, we are observing that some of the keystrokes (characters) are being printed in the log file of the other executable and missing from the main process.

We were not using setsid earlier, but now we can see that the process-group of the main process and child process are different. We also checked if there's a direct call to input from STDIN, but that's not the case either. We are using Boost 1.79.

0

There are 0 answers