aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ice/files/patch-cpp-src-Ice-Service.cpp
blob: b2fe13bb36bc3954664e974a9fffd50834d43c77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- cpp.orig/src/Ice/Service.cpp    2011-06-15 21:43:59.000000000 +0200
+++ cpp/src/Ice/Service.cpp 2012-03-04 20:14:53.000000000 +0100
@@ -2136,17 +2136,26 @@
             //
             // Associate stdin, stdout and stderr with /dev/null.
             //
+#ifndef NDEBUG
             int fd;
-            fd = open("/dev/null", O_RDWR);
+            fd = 
+#endif
+            open("/dev/null", O_RDWR);
             assert(fd == 0);
             if(stdOut.empty())
             {
-                fd = dup2(0, 1);
+#ifndef NDEBUG
+                fd = 
+#endif
+                dup2(0, 1);
                 assert(fd == 1);
             }
             if(stdErr.empty())
             {
-                fd = dup2(1, 2);
+#ifndef NDEBUG
+                fd = 
+#endif
+                dup2(1, 2);
                 assert(fd == 2);
             }
         }