mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
commands/exec_always: log error on execlp failure
And exit(1) instead of indicating success.
This commit is contained in:
parent
7beeb9e61b
commit
31a2252e83
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,8 @@ struct cmd_results *cmd_exec_process(int argc, char **argv) {
|
|||
if ((child = fork()) == 0) {
|
||||
close(fd[1]);
|
||||
execlp("sh", "sh", "-c", cmd, (void *)NULL);
|
||||
_exit(0);
|
||||
sway_log_errno(SWAY_ERROR, "execlp failed");
|
||||
_exit(1);
|
||||
}
|
||||
ssize_t s = 0;
|
||||
while ((size_t)s < sizeof(pid_t)) {
|
||||
|
|
Loading…
Reference in a new issue