Re: [pve-devel] [PATCH ha-manager 2/7] sim: use HA envs after_fork to close all inherited FDs

2017-01-18 Thread Dietmar Maurer
I do not really like this one, especially because we have an open pipe ... > Close all file descriptors bigger than 2, that are all open files > from the parent except std{in,out,err}. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.pro

[pve-devel] [PATCH ha-manager 2/7] sim: use HA envs after_fork to close all inherited FDs

2017-01-13 Thread Thomas Lamprecht
Close all file descriptors bigger than 2, that are all open files from the parent except std{in,out,err}. With this we can omit the lock_fh parameter which makes unifying the TestHardware and RTHardwares sim_hardware_cmd easier. As seeks positions of through forking dup'ed FDs from child and paren