Re: [vdsm] [Users] latest vdsm cannot read ib device speeds causing storage attach fail

2013-01-30 Thread Dan Kenigsberg
On Wed, Jan 30, 2013 at 05:53:11PM +0800, Sheldon wrote: > why not let the kernel init process to reap the zombie instead of > father process? > signal.signal(signal.SIGCHLD, signal.SIG_IGN) > Just for portable, BSD and System V does not support SIG_IGN? SIG_IGN is the default behavior for SIGCHLD

Re: [vdsm] [Users] latest vdsm cannot read ib device speeds causing storage attach fail

2013-01-30 Thread Sheldon
why not let the kernel init process to reap the zombie instead of father process? signal.signal(signal.SIGCHLD, signal.SIG_IGN) Just for portable, BSD and System V does not support SIG_IGN? On 01/25/2013 03:31 PM, Mark Wu wrote: On 01/25/2013 03:20 PM, Mark Wu wrote: Great work! The default ac

Re: [vdsm] [Users] latest vdsm cannot read ib device speeds causing storage attach fail

2013-01-30 Thread Royce Lv
I like your idea but we have following problems for signal.siginterrupt(): (1) I guess signal.siginterrupt also has some unexpected behaviour that we can not use that either at this moment:( When I integrated to the zombie reaper test case, handler will not be called when receive SIGCHLD.(also

Re: [vdsm] [Users] latest vdsm cannot read ib device speeds causing storage attach fail

2013-01-28 Thread Zhou Zheng Sheng
on 01/25/2013 15:31, Mark Wu wrote: On 01/25/2013 03:20 PM, Mark Wu wrote: Great work! The default action for SIGCHLD is ignore, so there's no problems reported before a signal handler is installed by zombie reaper. But I still have one problem: the python multiprocessing.manager code is runni

Re: [vdsm] [Users] latest vdsm cannot read ib device speeds causing storage attach fail

2013-01-25 Thread Mark Wu
On Fri 25 Jan 2013 05:23:24 PM CST, Royce Lv wrote: I patched python source managers.py to retry recv() after EINTR, supervdsm works well and the issue gone. Even declared in python doc that:"only the main thread can set a new signal handler, and the main thread will be the only one to re

Re: [vdsm] [Users] latest vdsm cannot read ib device speeds causing storage attach fail

2013-01-24 Thread Mark Wu
On 01/25/2013 03:20 PM, Mark Wu wrote: Great work! The default action for SIGCHLD is ignore, so there's no problems reported before a signal handler is installed by zombie reaper. But I still have one problem: the python multiprocessing.manager code is running a new thread and according to the

Re: [vdsm] [Users] latest vdsm cannot read ib device speeds causing storage attach fail

2013-01-24 Thread Mark Wu
Great work! The default action for SIGCHLD is ignore, so there's no problems reported before a signal handler is installed by zombie reaper. But I still have one problem: the python multiprocessing.manager code is running a new thread and according to the implementation of python's signal, only