[smokeping-users] smokeping --reload may kill smokeping processes

Timo Benk benk at b1-systems.de
Wed Jul 23 11:13:33 CEST 2014


i noticed that a smokeping --reload did not work for me, at least on SLES11SP3.

The reason seams to be that in the Statement "kill SIGTERM, $_ == 0" the expression
"$_ == 0" is evaluated first which results in "kill SIGTERM, 0" or "kill SIGTERM, undef"
which both will send the TERM signal to the the current processgroup killing the smokeping
process, at least on SLES11SP3.

The attached patch fixes this problem for me.


Timo Benk
Linux / Unix Consultant & Trainer
Tel.: +49-178-8066638
Mail: benk at b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20140723/ff883aed/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smokeping_reload.patch
Type: text/x-patch
Size: 1087 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20140723/ff883aed/attachment.bin 

More information about the smokeping-users mailing list