commit 1f4e3910e5793d181d2f13fd6e561d925de09b5b
parent 0db87b1cfd288fe8779fd624c75bc605e978806f
Author: Remy Noulin <loader2x@gmail.com>
Date: Fri, 7 Jul 2023 21:47:21 +0200
don't run commands on logger
it can kill itself with pkill
heartbeat.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/heartbeat.c b/heartbeat.c
@@ -240,10 +240,9 @@ void runcommand(void) {
iter(cfg, D) {
cast(smallDictt*, d, D);
- if (hasG(d, "logger")) {
- logSystem(argv[2]);
- }
- else {
+ if (hasG(d, "logger")) continue;
+ // no, can kill itself with pkill - logSystem(argv[2]);
+ //else {
logSystemf("ssh %s \"%s\"", iK(cfg)/*agent*/, argv[2]);
}
}