From 3e7722cd583bb2be80c0ffffd39b96f57ff32349 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 23 Mar 2013 18:04:02 +0100 Subject: [PATCH] misccoms.c: special return value for shared module --- src/frontend/misccoms.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/misccoms.c b/src/frontend/misccoms.c index 68bcf39a0..585d3d7fb 100644 --- a/src/frontend/misccoms.c +++ b/src/frontend/misccoms.c @@ -101,7 +101,12 @@ com_quit(wordlist *wl) destroy_const_plot(); spice_destroy_devices(); #endif +#ifdef SHARED_MODULE + /* add 1000 to notify that we exit from 'quit' */ + controlled_exit(1000 + exitcode); +#else exit(exitcode); +#endif }