misccoms.c: special return value for shared module

This commit is contained in:
h_vogt 2013-03-23 18:04:02 +01:00 committed by rlar
parent 3211674b2f
commit 62324299e1
1 changed files with 5 additions and 0 deletions

View File

@ -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
}