Home GnuPG
Diffusion GnuPG f20e9a464487

common,w32: Breakaway detached childs when in job

Description

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.

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

(cherry picked from commit 03df28b18b92b3fd3d2ba1000903c088dc5b0fcf)

  • GnuPG-Bug-Id: T4333
  • Signed-off-by: Andre Heinecke <aheinecke@gnupg.org>

Details

Provenance
aheineckeAuthored on Apr 29 2019, 8:54 AM
wernerCommitted on Jun 8 2021, 10:50 AM
Parents
rGb912f07cdf00: w32: Always use Unicode for console input and output.
Branches
Unknown
Tags
Unknown
Tasks
T4333: Job objects on Windows interfere with automatic start of gpg-agent