diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-05-23 19:21:37 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-05-23 19:21:37 -0700 |
commit | b6653769f3ae1c31cc5d475c2075499216c7433e (patch) | |
tree | 259e533eeb0ebf3b3ceea451fffa4d95275a4e81 /struct.c | |
parent | 604a2bf9498e171b1c0615a6839cd7a64983c9ae (diff) | |
download | txr-b6653769f3ae1c31cc5d475c2075499216c7433e.tar.gz txr-b6653769f3ae1c31cc5d475c2075499216c7433e.tar.bz2 txr-b6653769f3ae1c31cc5d475c2075499216c7433e.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 'struct.c')
0 files changed, 0 insertions, 0 deletions