diff --git a/src/connector.c b/src/connector.c index 555ede9f..6ed11b33 100644 --- a/src/connector.c +++ b/src/connector.c @@ -598,5 +598,5 @@ out: send_proc(&ckp->main, "shutdown"); sleep(1); } - exit(ret); + exit(ret? 1: 0); } diff --git a/src/generator.c b/src/generator.c index b4fff498..2d9a2986 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1237,5 +1237,5 @@ int generator(proc_instance_t *pi) send_proc(&ckp->main, "shutdown"); sleep(1); } - exit(ret); + exit(ret? 1: 0); } diff --git a/src/stratifier.c b/src/stratifier.c index ce351b0c..9ca0b74e 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1951,5 +1951,5 @@ int stratifier(proc_instance_t *pi) sleep(1); } - exit(ret); + exit(ret? 1: 0); }