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

2019-11-07 Thread Daniel P . Berrangé
On Fri, Oct 18, 2019 at 05:55:10PM +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

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

2019-11-04 Thread wang.yechao255
ping. > Subject: [PATCH v5] util: Set SIGPIPE to a no-op handler in virFork > > 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

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

2019-10-18 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 there is no need to set