2 Extern implementation of Nit module exec
7 #include "core__exec._ffi.h"
9 #include <android/log.h>
10 #define PRINT_ERROR(...) (void)__android_log_print(ANDROID_LOG_WARN, "Nit", __VA_ARGS__)
12 #define PRINT_ERROR(...) fprintf(stderr, __VA_ARGS__)
14 #line 19 "../lib/core/exec.nit"
24 long exec___NativeString_system___impl( char* self
)
26 #line 332 "../lib/core/exec.nit"
29 int status
= system(self
);
30 if (WIFSIGNALED(status
) && WTERMSIG(status
) == SIGINT
) {
31 // system exited on SIGINT: in my opinion the user wants the main to be discontinued
32 kill(getpid(), SIGINT
);