]> git.proxmox.com Git - pve-common.git/commitdiff
fix #1819: fork_worker: ensure sync'ed workers control terminal
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 29 Jun 2018 09:21:18 +0000 (11:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 29 Jun 2018 09:36:01 +0000 (11:36 +0200)
Use setpgid + tcsetpgrp instead of setsid if $sync (invocation via
cli), thus keeping /dev/tty - ssh-copy-id/ssh need it to read the
password, and putting the child in the forground. Further, ignore
SIGTTOU in child process (otherwise it gets stopped upon tcsetpgrp)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>

No differences found