From 5aacefa978182e8fabfa8c5c703ffb19108c44ce Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 23 May 2016 19:21:37 -0700 Subject: Don't use sleep function in tail streams. Let's use our usleep_wrap function which uses nanosleep. The old sleep can interact with SIGALRM. * stream.c (tail_calc): Calculate microseconds instead of seconds. (sleep): Wrapper for Windows gone. (tail_strategy): Rename sec variable to usec. Use usleep_wrap instead of sleep. * sysif.c (usleep_wrap): Change to extern. * sysif.h (usleep_wrap): Declaration updated. --- sysif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysif.c') diff --git a/sysif.c b/sysif.c index 78327b0c..e22db64a 100644 --- a/sysif.c +++ b/sysif.c @@ -158,7 +158,7 @@ static val abort_wrap(void) abort(); } -static val usleep_wrap(val usec) +val usleep_wrap(val usec) { val retval; cnum u = c_num(usec); -- cgit v1.2.3