diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 83188534796..443da073337 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1917,7 +1917,7 @@ Return non-nil iff we received any output before the timeout expired.") | |||
| 1917 | { | 1917 | { |
| 1918 | CHECK_NUMBER (timeout, 1); | 1918 | CHECK_NUMBER (timeout, 1); |
| 1919 | seconds = XINT (timeout); | 1919 | seconds = XINT (timeout); |
| 1920 | if (seconds <= 0) | 1920 | if (seconds < 0 || (seconds == 0 && useconds == 0)) |
| 1921 | seconds = -1; | 1921 | seconds = -1; |
| 1922 | } | 1922 | } |
| 1923 | else | 1923 | else |