summaryrefslogtreecommitdiffstats
path: root/scilab/modules/shell
diff options
context:
space:
mode:
authorAllan CORNET <allan.cornet@scilab.org>2010-04-08 10:16:27 +0200
committerAllan CORNET <allan.cornet@scilab.org>2010-04-08 10:16:27 +0200
commit5ebd749aff94ec25927049698133fe8f6baaae6c (patch)
tree5b7d561c1275fd0dfa484e4bff36112462fc7043 /scilab/modules/shell
parent089233341db4f1b2edf4a9ee13c2098e0056f90f (diff)
downloadscilab-5ebd749aff94ec25927049698133fe8f6baaae6c.zip
scilab-5ebd749aff94ec25927049698133fe8f6baaae6c.tar.gz
fix exit on macos
Diffstat (limited to 'scilab/modules/shell')
-rw-r--r--scilab/modules/shell/src/c/others/initMacOSXEnv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/scilab/modules/shell/src/c/others/initMacOSXEnv.c b/scilab/modules/shell/src/c/others/initMacOSXEnv.c
index 4d013ee..77020df 100644
--- a/scilab/modules/shell/src/c/others/initMacOSXEnv.c
+++ b/scilab/modules/shell/src/c/others/initMacOSXEnv.c
@@ -90,7 +90,7 @@ static void setAppName(const char * name) {
90 * @param param The structure containing the missing argument mandatory for realmain 90 * @param param The structure containing the missing argument mandatory for realmain
91 * @return the result of the operation (0 if OK ...) 91 * @return the result of the operation (0 if OK ...)
92 */ 92 */
93static int *launchMacOSXEnv(thread_parm_t *param){ 93static int launchMacOSXEnv(thread_parm_t *param){
94 thread_parm_t *p = (thread_parm_t *)param; 94 thread_parm_t *p = (thread_parm_t *)param;
95 int ret=-1; 95 int ret=-1;
96 { 96 {
@@ -167,7 +167,9 @@ static int *launchMacOSXEnv(thread_parm_t *param){
167 167
168 if (ret==0) { 168 if (ret==0) {
169 /* Call the actual startup script of Scilab */ 169 /* Call the actual startup script of Scilab */
170 ret=realmain(p->no_startup_flag_l, p->initial_script, p->initial_script_type, p->memory); 170 ret = realmain(p->no_startup_flag_l, p->initial_script, p->initial_script_type, p->memory);
171 free(p);
172 exit(ret);
171 } 173 }
172 free(p); 174 free(p);
173 return ret; 175 return ret;