From: Max Kellermann Date: Sun, 13 Sep 2009 06:37:26 +0000 (+0200) Subject: plugin: show plugin error messages on the screen X-Git-Tag: release-0.15~20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fd5dd6f0067912bbfddc8db1522a6c7d061b5cad;p=ncmpc.git plugin: show plugin error messages on the screen Due to a typo, stdout was redirected twice to the pipe, and stderr was forgotten. --- diff --git a/NEWS b/NEWS index 6f09d26..de9f1a3 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ ncmpc 0.15 - not yet released * added CMD_SELECT_PLAYING * display song duration in the playlist * added the "hardware_cursor" option +* show plugin error messages on the screen * new translation: Hebrew diff --git a/src/plugin.c b/src/plugin.c index 0aa13b5..88cc305 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -222,7 +222,7 @@ start_plugin(struct plugin_cycle *cycle, const char *plugin_path) if (pid == 0) { dup2(fds[1], 1); - dup2(fds[1], 1); + dup2(fds[1], 2); close(fds[0]); close(fds[1]); close(0);