]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix for compiling src/unlinkd.cc with kqueue and epoll.
authorwessels <>
Tue, 24 Apr 2007 12:30:36 +0000 (12:30 +0000)
committerwessels <>
Tue, 24 Apr 2007 12:30:36 +0000 (12:30 +0000)
commit9ece7c7c51252249cbbe01b5a87004b395cbd193
tree046a4640f1d6379d788d22712b85a06da6c61b60
parent9fc3ecb76022a18e8b0b6bd9996e2126244debc0
Fix for compiling src/unlinkd.cc with kqueue and epoll.

When Squid is compiled with --enable-kqueue or --enable-epoll, we're
not supposed to use any fd_set structures.  unlinkd.cc uses select()
to pause and wait for for feedback from the external unlinkd helper.
But when using kqueue or epoll, unlinkd.cc will have to use "usleep"
emulation rather than select.

The contents of lib/xusleep.c and include/xusleep.h have been copied
from Squid-2 sources.
include/xusleep.h [new file with mode: 0644]
lib/Makefile.am
lib/xusleep.c [new file with mode: 0644]
src/unlinkd.cc