Mac error box investigation

This commit is contained in:
Allen Webster 2017-11-12 13:47:57 -05:00
parent ab0749cad4
commit 06faf1cab2
2 changed files with 9 additions and 1 deletions

View File

@ -235,7 +235,12 @@ Sys_CLI_Call_Sig(system_cli_call){
exit(1);
}
char* argv[] = { "sh", "-c", script_name, NULL };
char* argv[] = {
"sh",
"-c",
script_name,
0
};
if (execv("/bin/sh", argv) == -1){
DBG_POINT();
@ -579,6 +584,8 @@ osx_init(){
DBG_POINT();
link_system_code();
system_error_box("OOPS");
//
// Memory init
//

View File

@ -11,6 +11,7 @@
internal void
system_error_box(char *msg, b32 shutdown = true){
LOGF("error box: %s\n", msg);
osx_error_dialogue(msg);
if (shutdown){
exit(1);