From 4bbbe25802ee5d625d05b9566bcc488b93974692 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 2 Feb 2010 15:28:36 +0000 Subject: * Remove most Cygwin-specific code. Cygwin 1.7 implements advisory POSIX locks, and simulates Unix-style file deletion semantics sufficiently. Note that this means that Nix won't work on Cygwin 1.5 anymore. --- src/libutil/util.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/libutil/util.cc') diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 711a969e4..bb17fa5f6 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -1,9 +1,5 @@ #include "config.h" -#ifdef __CYGWIN__ -#include -#endif - #include #include #include @@ -905,15 +901,7 @@ void closeMostFDs(const set & exceptions) void quickExit(int status) { -#ifdef __CYGWIN__ - /* Hack for Cygwin: _exit() doesn't seem to work quite right, - since some Berkeley DB code appears to be called when a child - exits through _exit() (e.g., because execve() failed). So call - the Windows API directly. */ - ExitProcess(status); -#else _exit(status); -#endif } -- cgit v1.2.3