diff options
author | LRN <lrn1986@gmail.com> | 2013-02-16 16:16:16 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-02-16 16:16:16 +0000 |
commit | 58dd81aa3dd1986617866918779cd64324c7d8b6 (patch) | |
tree | 5de5910200f4147577c9de27133208d73e975877 /src/util | |
parent | c5f70c7b4b2af1131bdcec66fe9761ca3c6e4490 (diff) | |
download | gnunet-58dd81aa3dd1986617866918779cd64324c7d8b6.tar.gz gnunet-58dd81aa3dd1986617866918779cd64324c7d8b6.zip |
Make pipe sanity check work on W32 too
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/os_priority.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/os_priority.c b/src/util/os_priority.c index 983da42b1..168a9c5f5 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c | |||
@@ -151,7 +151,12 @@ GNUNET_OS_install_parent_control_handler (void *cls, | |||
151 | putenv (GNUNET_OS_CONTROL_PIPE "="); | 151 | putenv (GNUNET_OS_CONTROL_PIPE "="); |
152 | return; | 152 | return; |
153 | } | 153 | } |
154 | #if !defined (WINDOWS) | ||
154 | if (pipe_fd >= FD_SETSIZE) | 155 | if (pipe_fd >= FD_SETSIZE) |
156 | #else | ||
157 | if ((FILE_TYPE_UNKNOWN == GetFileType ((HANDLE) pipe_fd)) | ||
158 | && (0 != GetLastError ())) | ||
159 | #endif | ||
155 | { | 160 | { |
156 | LOG (GNUNET_ERROR_TYPE_ERROR, | 161 | LOG (GNUNET_ERROR_TYPE_ERROR, |
157 | "GNUNET_OS_CONTROL_PIPE `%s' contains garbage?\n", env_buf); | 162 | "GNUNET_OS_CONTROL_PIPE `%s' contains garbage?\n", env_buf); |