Hi,

Can somebody handle this issue?
She said that, she couldn't quit crm_mon command with Ctrl+C.
I usually use crm_mon with -i option, so I couldn't notice this behavior,
but it sure is that crm_mon running with no option wouldn't be stopped by
SIGINT.
It's odd, right?
I think almost all people would expect that Ctrl + C can stop this command.
See attached her patch.

Thanks,
Junko


> I noticed that crm_mon doesn't exit immediately
> when it receive SIGINT in mainloop.
> It seems that SIGINT only kills sleep() function...
> (Is this caused by something in G_main_add_SignalHandler()?
>  Or anything else?)
> 
> So, I modified it to exit wait function
> when it is interrupted by a signal.
> This patch is for Heartbeat STABLE 2.1 (aae8d51d84ec).
> I hope it isn't too late for Heartbeat2.1.4...
> 
> 
> Regards,
> Satomi Taniguchi

Attachment: interrupted_by_a_signal.patch
Description: Binary data

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to