[libvirt] [PATCH v6] util: Set SIGPIPE to a no-op handler in virFork

2019-11-07 Thread Wang Yechao
Libvirtd has set SIGPIPE to ignored, and virFork resets all signal handlers to the defaults. But child process may write logs to stderr/stdout, that may generate SIGPIPE if journald has stopped. So set SIGPIPE to a dummy no-op handler before unmask signals in virFork(), and the handler will get re

Re: [libvirt] [PATCH v6] util: Set SIGPIPE to a no-op handler in virFork

2019-11-08 Thread Daniel P . Berrangé
On Fri, Nov 08, 2019 at 08:25:15AM +0800, Wang Yechao wrote: > Libvirtd has set SIGPIPE to ignored, and virFork resets all signal > handlers to the defaults. But child process may write logs to > stderr/stdout, that may generate SIGPIPE if journald has stopped. > > So set SIGPIPE to a dummy no-op