diff options
author | nicm <nicm> | 2015-05-29 23:26:52 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-05-29 23:26:52 +0000 |
commit | 2a8c2648f0375994715b2fea9de144b15c9588a2 (patch) | |
tree | fc300e7233b3430757e3c3b5a836e8e7552d50de | |
parent | 74c755f2aba6402f9ec51fc6b4b61560884af46d (diff) | |
download | rtmux-2a8c2648f0375994715b2fea9de144b15c9588a2.tar.gz rtmux-2a8c2648f0375994715b2fea9de144b15c9588a2.tar.bz2 rtmux-2a8c2648f0375994715b2fea9de144b15c9588a2.zip |
Don't use special strings if #() commands fail, just remove the format
(as if the command produced nothing). Makes constructions that can fail
like '#(test whatever && echo foo)' work as they did before.
-rw-r--r-- | format.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -175,17 +175,6 @@ format_job_callback(struct job *job) fj->job = NULL; free(fj->out); - if (WIFEXITED(job->status) && WEXITSTATUS(job->status) != 0) { - xasprintf(&fj->out, "<'%s' exited with %d>", fj->cmd, - WEXITSTATUS(job->status)); - return; - } - if (WIFSIGNALED(job->status)) { - xasprintf(&fj->out, "<'%s' got signal %d>", fj->cmd, - WTERMSIG(job->status)); - return; - } - buf = NULL; if ((line = evbuffer_readline(job->event->input)) == NULL) { len = EVBUFFER_LENGTH(job->event->input); |