tiian / flom

FLoM: Easy to Use Distributed Lock Manager; a tool to synchronize the execution of commands, shell scripts and custom programs.
http://www.tiian.org/flom/
GNU General Public License v2.0
27 stars 6 forks source link

Option --ignore-signal=SIGTERM apparently not working using Ubuntu 22.04 LTS #26

Closed tiian closed 1 year ago

tiian commented 1 year ago

The case test related to option

--ignore-signal=SIGTERM

does not work for Ubuntu 22.04 LTS. It's a possible bug to be investigated.

tiian commented 1 year ago

The bug is not in the flom code but in the shell script

flom_test_exec2.sh

called by case tests in file

monitor.at

The issue is located at command

/bin/kill -SIGTERM -PGID

it seems signals are not delivered to the Process Group ID, but they are still delivered to single processes using

/bin/kill -SIGTERM PID1 PID2

The behavior sounds strange and it seems quite impossible that there's something broken in "kill" command. Anyway, the case test works sending the message to every process ID.

tiian commented 1 year ago

Issue solved with version 1.6.0: https://github.com/tiian/flom/releases/tag/1.6.0