Signed-off-by: Jean Privat <jean@pryen.org>
data->running = 0;
}
}
+
+int string_NativeString_NativeString_system_0(const char *cmd) {
+ int status = system(cmd);
+ if (WIFSIGNALED(status) && WTERMSIG(status) == SIGINT) {
+ // cmd exited on SIGINT: in my opinion the user wants the main to be discontinued
+ kill(getpid(), SIGINT);
+ }
+}
se_exec_data_t* exec_Process_Process_basic_exec_execute_4(void *, char *, char *, int, int);
-#define string_NativeString_NativeString_system_0(self) (system(self))
+int string_NativeString_NativeString_system_0(const char*);
#define exec_NativeProcess_NativeProcess_id_0(self) (((se_exec_data_t*)self)->id)
#define exec_NativeProcess_NativeProcess_status_0(self) (((se_exec_data_t*)self)->status)