Change both return codes for the stop == true case: * For failures, use exit(1) as exit(-1) is wrong (it actually becomes 255 in the shell) * For success, use exit(2) instead of exit(1) as exit(1) is usually used for errors This should preserve the requirement of allowing shell script while loops to break when Ctrl-C is hit. Signed-off-by: Luiz Capitulino <lcapitulino@xxxxxxxxxx> --- src/rt-migrate-test/rt-migrate-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt-migrate-test/rt-migrate-test.c b/src/rt-migrate-test/rt-migrate-test.c index d7b68dd..1362404 100644 --- a/src/rt-migrate-test/rt-migrate-test.c +++ b/src/rt-migrate-test/rt-migrate-test.c @@ -599,9 +599,9 @@ int main (int argc, char **argv) * loop know to break. */ if (check < 0) - exit(-1); - else exit(1); + else + exit(2); } if (check < 0) exit(-1); -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html