summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Naggum <erik@naggum.no>1996-02-21 01:45:21 +0000
committerErik Naggum <erik@naggum.no>1996-02-21 01:45:21 +0000
commitada9a4fdf9936f50e38200a1a945d3e82f313e3e (patch)
tree40b9389fe940911c1e1665fd9b48f00197ea9154
parenta915dc6d70636947f168d634495a1a84f28fdc6b (diff)
downloademacs-ada9a4fdf9936f50e38200a1a945d3e82f313e3e.tar.gz
(Faccept_process_output): Accept sub-second timeouts.
-rw-r--r--src/process.c2
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.")
{
CHECK_NUMBER (timeout, 1);
seconds = XINT (timeout);
- if (seconds <= 0)
+ if (seconds < 0 || (seconds == 0 && useconds == 0))
seconds = -1;
}
else