From: Danny Mayer Date: Tue, 14 Apr 2009 11:51:41 +0000 (-0400) Subject: [Bug 813] Conditional naming of Event X-Git-Tag: NTP_4_2_4P7_RC3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c3cd9a22354da08a2cdd73831f618cd75faaddb;p=thirdparty%2Fntp.git [Bug 813] Conditional naming of Event bk: 49e478cdrr9HsUgQIWVoyiFyjhe_fA --- diff --git a/ports/winnt/ntpd/ntp_iocompletionport.c b/ports/winnt/ntpd/ntp_iocompletionport.c index 217317a6b..3ee28a0a5 100644 --- a/ports/winnt/ntpd/ntp_iocompletionport.c +++ b/ports/winnt/ntpd/ntp_iocompletionport.c @@ -76,6 +76,12 @@ static HANDLE hIoCompletionPort = NULL; static HANDLE WaitableIoEventHandle = NULL; static HANDLE WaitableExitEventHandle = NULL; +#ifdef NTPNEEDNAMEDHANDLE +#define WAITABLEIOEVENTHANDLE "WaitableIoEventHandle" +#else +#define WAITABLEIOEVENTHANDLE NULL +#endif + #define MAXHANDLES 3 HANDLE WaitHandles[MAXHANDLES] = { NULL, NULL, NULL }; @@ -274,7 +280,7 @@ init_io_completion_port( /* Create the event used to signal an IO event */ - WaitableIoEventHandle = CreateEvent(NULL, FALSE, FALSE, "WaitableIoEventHandle"); + WaitableIoEventHandle = CreateEvent(NULL, FALSE, FALSE, WAITABLEIOEVENTHANDLE); if (WaitableIoEventHandle == NULL) { msyslog(LOG_ERR, "Can't create I/O event handle: %m - another process may be running - EXITING");