mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-27 02:40:04 -07:00
ignore child process when exec
This commit is contained in:
parent
7e957c162a
commit
b56b5b52eb
@ -35,6 +35,7 @@
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/wait.h>
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
||||
#include "misc_log_ex.h"
|
||||
@ -114,7 +115,10 @@ int spawn(const char *filename, const std::vector<std::string>& args, bool wait)
|
||||
if (pid > 0)
|
||||
{
|
||||
if (!wait)
|
||||
{
|
||||
signal(SIGCHLD, SIG_IGN);
|
||||
return 0;
|
||||
}
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user