Closed orlitzky closed 7 years ago
In queue.c, we find the following code...
queue.c
void push_into_queue (char* buf) { ... #ifdef USE_NANOSLEEP delay.tv_sec = 0; delay.tv_nsec = 250000000; nanosleep(&delay,NULL); #else sleep(1); #endif
The time.h header for nanosleep is included, but unistd.h for sleep is not.
time.h
nanosleep
unistd.h
sleep
queue.c includes ../include/config.h which includes unistd.h
../include/config.h
Oops, I missed that. We've been carrying a patch that can be dropped, then. Thanks!
In
queue.c
, we find the following code...The
time.h
header fornanosleep
is included, butunistd.h
forsleep
is not.