process: reset signal handler, mask and pending set during exec()
@@ -526,6 +526,10 @@ int process_exec(syspage_program_t *prog, process_t *process, thread_t *current,
process->path = path;
+ process->sigpend = 0;
+ process->sigmask = 0;
+ process->sighandler = NULL;
+
/* Map executable */
process_load(process, current, prog, path, argc, argv, envp, &stack, &entry);
@@ -742,6 +746,10 @@ int process_exec(syspage_program_t *prog, process_t *process, thread_t *current,
resource_init(process);
+ process->sigpend = 0;
+ process->sigmask = 0;
+ process->sighandler = NULL;
+
vm_mapMove(&process->map, &map);
process->mapp = &process->map;
process->path = path;
