aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-04-25 13:38:40 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-04-25 13:38:40 -0700
commita868abb55a0cef81cb8760e70ac160853a80e5d0 (patch)
treeaff4ae162cd3b6f80999979215f9a17a683efd6f /proc.cpp
parentecab34c787529ba45699e93d803bd60eb8c3d185 (diff)
Minor cleanup of proc.cpp
Diffstat (limited to 'proc.cpp')
-rw-r--r--proc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.cpp b/proc.cpp
index 6d642eb6..e084f1e4 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 );
}
}