Skip to content

Commit

Permalink
nitc/android: do not catch signals on Android, use the default stackt…
Browse files Browse the repository at this point in the history
…race

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
  • Loading branch information
xymus committed Nov 7, 2015
1 parent 6efb66f commit 5d35dbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/abstract_compiler.nit
Original file line number Diff line number Diff line change
Expand Up @@ -853,12 +853,14 @@ extern void nitni_global_ref_decr( struct nitni_ref *ref );
v.add_decl("int main(int argc, char** argv) \{")
end

v.add "#ifndef ANDROID"
v.add("signal(SIGABRT, sig_handler);")
v.add("signal(SIGFPE, sig_handler);")
v.add("signal(SIGILL, sig_handler);")
v.add("signal(SIGINT, sig_handler);")
v.add("signal(SIGTERM, sig_handler);")
v.add("signal(SIGSEGV, sig_handler);")
v.add "#endif"
v.add("signal(SIGPIPE, SIG_IGN);")

v.add("glob_argc = argc; glob_argv = argv;")
Expand Down

0 comments on commit 5d35dbd

Please sign in to comment.