summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Judson Rosen2017-03-30 23:26:21 -0400
committerJoshua Judson Rosen2017-04-01 23:24:23 -0400
commit4b26f98f7db9f8424c5676bc0bce24c2d8868e3d (patch)
tree59e4983060e325255e89d3d72025c3f2f0297086
parentui-cmdwin: prevent excessive buffering on captured stdio streams (diff)
downloadgnurobots-4b26f98f7db9f8424c5676bc0bce24c2d8868e3d.tar.gz
main: exit with error on failure to init arena
This handler got broken when exit_nicely stopped actually triggering an exit from the entire process and started just exiting the guile thread. And, actually, it never exited with an error-status before-- which it does now.
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9867bcb..df81cd7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -305,6 +305,7 @@ void main_prog(void *closure, gint argc, gchar *argv[])
if (map == NULL)
{
exit_nicely();
+ exit (1);
}
/* ensure the robot is placed properly */