From c9f550207f1856543fae88ef8b175f7614e75d88 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 20 May 2014 15:29:53 +1000 Subject: [PATCH] Send one on all process failure codes --- src/connector.c | 2 +- src/generator.c | 2 +- src/stratifier.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); }