fix #1956: return controlling terminal to parent
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 20 Nov 2018 08:46:32 +0000 (09:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 20 Nov 2018 08:50:38 +0000 (09:50 +0100)
commit6a09f09630cec718e8734d2aaf22cc5391078a0c
tree1a7cb9c0de92bf8f64a685971305a117a6b10813
parentedbb302ec89d0a32b2cbb4f000f910f66d5e8dfc
fix #1956: return controlling terminal to parent

The changes introduced in e97f807c388c10250f442b1f16c5315df2ffc2af let the
child in fork_worker take the controlling terminal of the session, without
returning it after finishing.
This breaks using/reading from the terminal after both parent and child exit
- e.g. when the code is called from within a shellscript.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PVE/RESTEnvironment.pm