summaryrefslogtreecommitdiffstats
path: root/sysif.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-05-23 19:21:37 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-05-23 19:21:37 -0700
commit5aacefa978182e8fabfa8c5c703ffb19108c44ce (patch)
tree259e533eeb0ebf3b3ceea451fffa4d95275a4e81 /sysif.h
parent009d16bee2ae23593c11c47db1af385e70f3a700 (diff)
downloadtxr-5aacefa978182e8fabfa8c5c703ffb19108c44ce.tar.gz
txr-5aacefa978182e8fabfa8c5c703ffb19108c44ce.tar.bz2
txr-5aacefa978182e8fabfa8c5c703ffb19108c44ce.zip
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.
Diffstat (limited to 'sysif.h')
-rw-r--r--sysif.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysif.h b/sysif.h
index 5b22ea5c..4d9f3f42 100644
--- a/sysif.h
+++ b/sysif.h
@@ -45,6 +45,7 @@ typedef long off_t;
val getenv_wrap(val name);
val at_exit_call(val func);
val at_exit_do_not_call(val func);
+val usleep_wrap(val usec);
#if HAVE_FORK_STUFF
val exec_wrap(val file, val args_opt);
#endif