Skip to content

Commit 1fbefd5

Browse files
committed
fix(Proces_UNIX): fix QNX kill #5201
1 parent c6dea11 commit 1fbefd5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Foundation/src/Process_UNIX.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ ProcessHandleImpl* ProcessImpl::launchImpl(const std::string& command, const Arg
137137
struct inheritance inherit;
138138
std::memset(&inherit, 0, sizeof(inherit));
139139
inherit.flags = SPAWN_ALIGN_DEFAULT | SPAWN_CHECK_SCRIPT | SPAWN_SEARCH_PATH;
140+
if (options & PROCESS_KILL_TREE)
141+
{
142+
inherit.flags |= SPAWN_SETGROUP;
143+
inherit.pgroup = SPAWN_NEWPGROUP;
144+
}
140145
int fdmap[3];
141146
fdmap[0] = inPipe ? inPipe->readHandle() : 0;
142147
fdmap[1] = outPipe ? outPipe->writeHandle() : 1;

0 commit comments

Comments
 (0)