fork_worker: refactor child exit
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 20 Nov 2018 08:46:31 +0000 (09:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 20 Nov 2018 08:50:38 +0000 (09:50 +0100)
commitedbb302ec89d0a32b2cbb4f000f910f66d5e8dfc
tree84cd526b97b564b9036a0617b0a06b7aff334615
parent7571d25b3d7e4709082972181925b8dce43b9303
fork_worker: refactor child exit

* factor out duplicated code.
* drop final kill(-9, $$), since the POSIX:_exit call does not return
  (see man 2 _exit).

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