Boost Process fails on Solaris 10 in async mode
Hi,
I tried installing boost process on my Solaris 10 Sparc machine. On
compiling it using gcc-6.3.0, I ran into a static assert failure at compile
time at
https://github.com/boostorg/process/blob/boost-1.68.0/include/boost/process/....
In order to fix that, I changed
static_assert(!WIFEXITED(still_active) && !WIFSIGNALED(still_active), "Internal
Error");
to static_assert(!WIFEXITED(still_active), "Internal Error");
There is some discussion about this at
https://www.openwall.com/lists/musl/2018/08/10/1
Now, the following code works well onCentOS 7(where no change was made to
Boost process), but fails on Solaris 10 (where I made the above change as a
workaround). On Solaris 10, the return code is 127 and stdout and stderr are
empty.
#include <iostream>#include <thread>#include
participants (1)
-
Sanket Sharma