=== modified file 'plugbasedclient.c' --- plugbasedclient.c 2008-08-01 06:56:27 +0000 +++ plugbasedclient.c 2008-08-01 07:04:32 +0000 @@ -328,7 +328,7 @@ int pipefd[2]; ret = pipe(pipefd); if (ret == -1){ - perror(argv[0]); + perror("pipe"); goto end; } plugin *p = getplugin(dirst->d_name, &plugin_list); @@ -345,6 +345,9 @@ closedir(dir); close(pipefd[0]); /* close unused read end of pipe */ dup2(pipefd[1], STDOUT_FILENO); /* replace our stdout */ + if(pipefd[1] > 2){ + close(pipefd[1]); + } if(execv(filename, p->argv) < 0){ perror(argv[0]);