main: handle execv failure

Log an error, exit daemon
This commit is contained in:
Wim Taymans 2020-01-08 12:38:46 +01:00
parent ffbb74c4af
commit aa36a72427
3 changed files with 13 additions and 4 deletions

View file

@ -200,7 +200,7 @@ int pw_daemon_config_run_commands(struct pw_daemon_config *config, struct pw_con
spa_list_for_each(command, &config->commands, link) {
if ((ret = pw_command_run(command, context, &err)) < 0) {
pw_log_warn("could not run command %s: %s", command->args[0], err);
pw_log_error("could not run command %s: %s", command->args[0], err);
free(err);
break;
}