[Gambas-user] [Git][gambas/gambas][master] Don't call QUIT when terminating a task, it crashes. Just clean up the temporary…
Benoît Minisini
gitlab at mg.gitlab.com
Sun Jan 28 17:58:11 CET 2018
Benoît Minisini pushed to branch master at Gambas / gambas
Commits:
17834b13 by gambas at 2018-01-28T17:57:13+01:00
Don't call QUIT when terminating a task, it crashes. Just clean up the temporary directory and exit.
[INTERPRETER]
* BUG: Don't call QUIT when terminating a task, it crashes. Just clean up the temporary directory and exit.
- - - - -
3 changed files:
- main/gbx/Makefile.am
- main/gbx/gbx.c
- main/gbx/gbx_c_task.c
Changes:
=====================================
main/gbx/Makefile.am
=====================================
--- a/main/gbx/Makefile.am
+++ b/main/gbx/Makefile.am
@@ -7,9 +7,9 @@ gblib_LTLIBRARIES = gb.la
libgbx_a_CFLAGS = -DGAMBAS_PATH="\"$(bindir)\"" $(AM_CFLAGS_OPT)
-gbx3_LDADD = @C_LIB@ @GBX_THREAD_LIB@ libgbx.a @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ @FFI_LIB@ @RT_LIB@
+gbx3_LDADD = @C_LIB@ @GBX_THREAD_LIB@ libgbx.a @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ @FFI_LIB@ @RT_LIB@
gbx3_LDFLAGS = @LD_FLAGS@ @GBX_THREAD_LDFLAGS@ @INTL_LDFLAGS@ @CONV_LDFLAGS@ @GETTEXT_LDFLAGS@ @FFI_LDFLAGS@ @RT_LDFLAGS@
-gbx3_CFLAGS = -DGAMBAS_PATH="\"$(bindir)\"" $(AM_CFLAGS)
+gbx3_CFLAGS = -DGAMBAS_PATH="\"$(bindir)\"" $(AM_CFLAGS) -flto
gb_la_LIBADD = @C_LIB@ @GBX_THREAD_LIB@ @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ @FFI_LIB@ @RT_LIB@
gb_la_LDFLAGS = -module @LD_FLAGS@ @INTL_LDFLAGS@ @CONV_LDFLAGS@ @GETTEXT_LDFLAGS@ @FFI_LDFLAGS@ @RT_LDFLAGS@
=====================================
main/gbx/gbx.c
=====================================
--- a/main/gbx/gbx.c
+++ b/main/gbx/gbx.c
@@ -472,7 +472,7 @@ int main(int argc, char *argv[])
MEMORY_exit();
fflush(NULL);
-
+
return ret;
}
=====================================
main/gbx/gbx_c_task.c
=====================================
--- a/main/gbx/gbx_c_task.c
+++ b/main/gbx/gbx_c_task.c
@@ -252,8 +252,8 @@ static void prepare_task(CTASK *_object)
static void exit_child(int ret)
{
- EXEC_quit_value = ret;
- EXEC_quit();
+ FILE_exit();
+ _exit(ret);
}
static bool start_task(CTASK *_object)
View it on GitLab: https://gitlab.com/gambas/gambas/commit/17834b13a6b0699c999c898e57df9e0fd49e496c
---
View it on GitLab: https://gitlab.com/gambas/gambas/commit/17834b13a6b0699c999c898e57df9e0fd49e496c
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180128/980ade12/attachment-0001.html>
More information about the User
mailing list