Merge pull request #1526 from alignan/pull/fix-shell-exec-no-process-name

Fixes error when processes name are not used
This commit is contained in:
Nicolas Tsiftes 2016-02-26 15:12:44 +01:00
commit 5c7bc22321

View File

@ -116,11 +116,13 @@ PROCESS_THREAD(shell_exec_process, ev, data)
shell_output_str(&exec_command, print, symbol);
if(ret == ELFLOADER_OK) {
#if !PROCESS_CONF_NO_PROCESS_NAMES
int i;
for(i = 0; elfloader_autostart_processes[i] != NULL; ++i) {
shell_output_str(&exec_command, "exec: starting process ",
elfloader_autostart_processes[i]->name);
}
#endif
autostart_start(elfloader_autostart_processes);
}