From a868abb55a0cef81cb8760e70ac160853a80e5d0 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 25 Apr 2012 13:38:40 -0700 Subject: [PATCH] Minor cleanup of proc.cpp --- proc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc.cpp b/proc.cpp index 6d642eb66..e084f1e44 100644 --- a/proc.cpp +++ b/proc.cpp @@ -825,7 +825,7 @@ static int select_try( job_t *j ) int fd = d->param1.pipe_fd[0]; // fwprintf( stderr, L"fd %d on job %ls\n", fd, j->command ); FD_SET( fd, &fds ); - maxfd=maxi( maxfd, d->param1.pipe_fd[0] ); + maxfd = maxi(maxfd, fd); debug( 3, L"select_try on %d\n", fd ); } }