diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/callproc.c b/src/callproc.c index 2bb18b3bf4c..bc02c633fec 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -1128,13 +1128,13 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir) | |||
| 1128 | #endif /* not MSDOS */ | 1128 | #endif /* not MSDOS */ |
| 1129 | } | 1129 | } |
| 1130 | 1130 | ||
| 1131 | /* Move the file descriptor FD so that its number is not less than MIN. | 1131 | /* Move the file descriptor FD so that its number is not less than MINFD. |
| 1132 | If the file descriptor is moved at all, the original is freed. */ | 1132 | If the file descriptor is moved at all, the original is freed. */ |
| 1133 | int | 1133 | int |
| 1134 | relocate_fd (fd, min) | 1134 | relocate_fd (fd, minfd) |
| 1135 | int fd, min; | 1135 | int fd, minfd; |
| 1136 | { | 1136 | { |
| 1137 | if (fd >= min) | 1137 | if (fd >= minfd) |
| 1138 | return fd; | 1138 | return fd; |
| 1139 | else | 1139 | else |
| 1140 | { | 1140 | { |
| @@ -1151,7 +1151,7 @@ relocate_fd (fd, min) | |||
| 1151 | } | 1151 | } |
| 1152 | /* Note that we hold the original FD open while we recurse, | 1152 | /* Note that we hold the original FD open while we recurse, |
| 1153 | to guarantee we'll get a new FD if we need it. */ | 1153 | to guarantee we'll get a new FD if we need it. */ |
| 1154 | new = relocate_fd (new, min); | 1154 | new = relocate_fd (new, minfd); |
| 1155 | close (fd); | 1155 | close (fd); |
| 1156 | return new; | 1156 | return new; |
| 1157 | } | 1157 | } |