diff options
-rw-r--r-- | os/osinit.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/os/osinit.c b/os/osinit.c index ab9c1d657..47061bb2b 100644 --- a/os/osinit.c +++ b/os/osinit.c @@ -224,17 +224,6 @@ OsInit(void) #endif #if !defined(XQUARTZ) /* STDIN is already /dev/null and STDOUT/STDERR is managed by console_redirect.c */ -# if defined(__APPLE__) - int devnullfd = open(devnull, O_RDWR, 0); - assert(devnullfd > 2); - - dup2(devnullfd, STDIN_FILENO); - dup2(devnullfd, STDOUT_FILENO); - close(devnullfd); -# elif !defined(__CYGWIN__) - fclose(stdin); - fclose(stdout); -# endif /* * If a write of zero bytes to stderr returns non-zero, i.e. -1, * then writing to stderr failed, and we'll write somewhere else |