pkgsrc/net/3proxy/patches/patch-ae
apb 438f574aec Calling usleep for 1000000 microseconds or more is not allowed,
so add a myusleep() wrapper to DTRT.  This should fix the 100% CPU
utilisation.

PKGREVISION -> 1.
2008-02-27 23:50:29 +00:00

13 lines
323 B
Text

$NetBSD: patch-ae,v 1.1 2008/02/27 23:50:29 apb Exp $
--- src/proxy.h.orig 2006-09-21 14:32:05.000000000 +0200
+++ src/proxy.h
@@ -95,6 +95,8 @@
#endif
#define daemonize() daemon(1,1)
#define SLEEPTIME 1000
+#define usleep(usecs) myusleep(usecs)
+int myusleep(useconds_t);
#ifndef O_BINARY
#define O_BINARY 0
#endif