common,w32: Breakaway detached childs when in job
authorAndre Heinecke <aheinecke@gnupg.org>
Mon, 29 Apr 2019 06:54:39 +0000 (08:54 +0200)
committerAndre Heinecke <aheinecke@gnupg.org>
Mon, 29 Apr 2019 06:54:39 +0000 (08:54 +0200)
commit03df28b18b92b3fd3d2ba1000903c088dc5b0fcf
treedebb1eebab5e00589231aa4eb2d2d4e8ce9f4c9c
parent874bc970ba6ec243ff474ef090242e0f7be6a7bc
common,w32: Breakaway detached childs when in job

* common/exechelp-w32.c (gnupg_spawn_process_detached): Add
CREATE_BREAKAWAY_FROM_JOB creation flag if required.

--
When the gpg process is assigned to a W32 "Job" the
child processes are killed once the Job is finished.
As we want our detached processes to linger e.g.
gpg-agent the breakaway flag is required in
that case.

GnuPG-Bug-Id: T4333

Thanks to Jan Echternach for reporting this and providing
a patch.

Signed-off-by: Andre Heinecke <aheinecke@gnupg.org>
common/exechelp-w32.c