blob: 397965e38826c92056028d0807036f13b541aa6b (
plain)
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
|
diff -ru initng.orig/include/initng/io.h initng/include/initng/io.h
--- initng.orig/include/initng/io.h 2012-12-11 03:45:20.000000000 -0500
+++ initng/include/initng/io.h 2012-12-11 03:44:30.000000000 -0500
@@ -21,6 +21,7 @@
#define INITNG_IO_H
#include <unistd.h>
+#include <stdbool.h>
#include <fcntl.h>
#include <initng/active_db.h>
@@ -43,6 +44,6 @@
pipe_h * pipe);
void initng_io_module_poll(int timeout);
-int initng_io_set_cloexec(int fd);
+/* int initng_io_set_cloexec(int fd); */
#endif /* !defined(INITNG_IO_H) */
diff -ru initng.orig/src/main/io/open.c initng/src/main/io/open.c
--- initng.orig/src/main/io/open.c 2012-12-11 03:45:20.000000000 -0500
+++ initng/src/main/io/open.c 2012-12-11 03:44:30.000000000 -0500
@@ -26,8 +26,5 @@
int fd;
fd = open(path, flags);
- if (fd != -1) {
- initng_io_fdtrack(fd);
- }
return fd;
}
|