Mercurial > emacs
comparison src/process.c @ 14605:80196bfd8b94
(Faccept_process_output): Accept sub-second timeouts.
author | Erik Naggum <erik@naggum.no> |
---|---|
date | Wed, 21 Feb 1996 01:45:21 +0000 |
parents | ef07b51330af |
children | 386831bc4a4e |
comparison
equal
deleted
inserted
replaced
14604:ab3a6813575a | 14605:80196bfd8b94 |
---|---|
1915 | 1915 |
1916 if (! NILP (timeout)) | 1916 if (! NILP (timeout)) |
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 |
1924 { | 1924 { |
1925 if (NILP (process)) | 1925 if (NILP (process)) |