I am calling an external utility (advzip
) from a code to run asynchronous recompression on written data. I use boost::process::spawn
to do that:
// std::string f;
auto p=boost::process::search_path("advzip");
if(p.empty()) return;
boost::process::spawn(p,"-q","-z","-2",f);
These subprocesses, however, stay around in zombie state - after they've completed their work - which is not supposed to happen as per boost::process::spawn
documentation. Am I doing something wrong?
I am using boost 1.65, running under Ubuntu 18.04.