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:
commit
5c7bc22321
|
@ -116,11 +116,13 @@ PROCESS_THREAD(shell_exec_process, ev, data)
|
||||||
shell_output_str(&exec_command, print, symbol);
|
shell_output_str(&exec_command, print, symbol);
|
||||||
|
|
||||||
if(ret == ELFLOADER_OK) {
|
if(ret == ELFLOADER_OK) {
|
||||||
|
#if !PROCESS_CONF_NO_PROCESS_NAMES
|
||||||
int i;
|
int i;
|
||||||
for(i = 0; elfloader_autostart_processes[i] != NULL; ++i) {
|
for(i = 0; elfloader_autostart_processes[i] != NULL; ++i) {
|
||||||
shell_output_str(&exec_command, "exec: starting process ",
|
shell_output_str(&exec_command, "exec: starting process ",
|
||||||
elfloader_autostart_processes[i]->name);
|
elfloader_autostart_processes[i]->name);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
autostart_start(elfloader_autostart_processes);
|
autostart_start(elfloader_autostart_processes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue