diff options
author | portix <portix@gmx.net> | 2013-05-03 12:09:27 +0200 |
---|---|---|
committer | portix <portix@gmx.net> | 2013-05-03 12:09:27 +0200 |
commit | 817bc41b66ea970ede2b1827c2e7c88ad0d62349 (patch) | |
tree | 2a3367a507d497c582fe3058ef8a78f346d64faf | |
parent | 408fac7384e07c1cc503200332d558cdc8d06e61 (diff) | |
download | dwb-817bc41b66ea970ede2b1827c2e7c88ad0d62349.zip |
Call exit() in global_exit
-rw-r--r-- | src/scripts.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/scripts.c b/src/scripts.c index 7556e426..14f80904 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -20,6 +20,7 @@ #define _POSIX_C_SOURCE 200112L #include <stdio.h> +#include <stdlib.h> #include <ctype.h> #include <string.h> #include <math.h> @@ -166,7 +167,6 @@ static JSClassRef s_gobject_class, s_message_class, s_deferred_class, s_history_class; -static gboolean s_commandline = false; static JSObjectRef s_array_contructor; static JSObjectRef s_completion_callback; static GQuark s_ref_quark; @@ -1690,11 +1690,9 @@ global_execute(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, s static JSValueRef global_exit(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argc, const JSValueRef argv[], JSValueRef* exc) { - if (s_commandline) - application_stop(); - else - dwb_end(0); - return UNDEFINED; + dwb_end(0); + exit(EXIT_SUCCESS); + return 0; }/*}}}*/ /*{{{*/ |