diff options
author | Emil Renner Berthing <esmil@mailme.dk> | 2012-12-19 18:00:29 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@mailme.dk> | 2012-12-19 18:01:34 +0100 |
commit | 02a14175cae37c1e0dcf5353e34ef9cbc1bf633f (patch) | |
tree | 2e545fe3fbd666786d1dcf052e16aff28b2cbc80 | |
parent | f208c209d86d7c5459488c96ba5d6c4d9aac3333 (diff) | |
download | lem-02a14175cae37c1e0dcf5353e34ef9cbc1bf633f.tar.gz lem-02a14175cae37c1e0dcf5353e34ef9cbc1bf633f.tar.xz lem-02a14175cae37c1e0dcf5353e34ef9cbc1bf633f.zip |
utils: yield in utils.exit() to stop running immediately
-rw-r--r-- | lem/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lem/utils.c b/lem/utils.c index 9c09c28..0a93ae2 100644 --- a/lem/utils.c +++ b/lem/utils.c @@ -146,7 +146,7 @@ utils_exit(lua_State *T) { int status = (int)luaL_checknumber(T, 1); lem_exit(status); - return 0; + return lua_yield(T, 0); } static int |