Code

plugin: show plugin error messages on the screen
authorMax Kellermann <max@duempel.org>
Sun, 13 Sep 2009 06:37:26 +0000 (08:37 +0200)
committerMax Kellermann <max@duempel.org>
Sun, 13 Sep 2009 06:37:26 +0000 (08:37 +0200)
Due to a typo, stdout was redirected twice to the pipe, and stderr was
forgotten.

NEWS
src/plugin.c

diff --git a/NEWS b/NEWS
index 6f09d2651a04a1f7f72a07df6ab84868a4cb9e13..de9f1a3aa663fb6dcb3d4c2560380d871de9ba8c 100644 (file)
--- 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
 
 
index 0aa13b5c10c9a98ac8c4f6b1e9346d50a790cdf1..88cc305044737d3ed0680588c40e230476dfa277 100644 (file)
@@ -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);