diff options
Diffstat (limited to 'runtime/stpd/librelay.c')
-rw-r--r-- | runtime/stpd/librelay.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c index c3ad77ea..6636d1eb 100644 --- a/runtime/stpd/librelay.c +++ b/runtime/stpd/librelay.c @@ -799,9 +799,11 @@ int stp_main_loop(void) { struct transport_start *t = (struct transport_start *)data; dbug("probe_start() returned %d\n", t->pid); - if (t->pid < 0) + if (t->pid < 0) { + if (target_cmd) + kill (target_pid, SIGKILL); cleanup_and_exit(0); - else if (target_cmd) + } else if (target_cmd) kill (target_pid, SIGUSR1); break; } |