]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC.pm
add open_pid_fd, open_lxc_pid, open_ppid helpers
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 20 Nov 2019 07:31:00 +0000 (08:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 20 Nov 2019 13:59:54 +0000 (14:59 +0100)
commitab74a9ba3aa9b5a50a3eb789930e185f4133450e
tree15c3afc153146e9c15ea0937eabcf62636edc369
parentaee0902bac7860eba7c4c8d0c9554525c73b4618
add open_pid_fd, open_lxc_pid, open_ppid helpers

Getting a pid and acting on it is always a race, so add
safer helpers for this.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC.pm