summaryrefslogtreecommitdiff
path: root/x11/gnome-terminal/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gnome-terminal/files')
-rw-r--r--x11/gnome-terminal/files/extra-src_terminal-screen.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/x11/gnome-terminal/files/extra-src_terminal-screen.c b/x11/gnome-terminal/files/extra-src_terminal-screen.c
deleted file mode 100644
index 3ea47ebc9a1d..000000000000
--- a/x11/gnome-terminal/files/extra-src_terminal-screen.c
+++ /dev/null
@@ -1,24 +0,0 @@
---- src/terminal-screen.c.orig 2014-09-23 20:15:23.000000000 +0200
-+++ src/terminal-screen.c 2014-11-09 20:19:35.759291981 +0100
-@@ -1192,7 +1192,21 @@
- for (j = 0; j < n_fds; j++) {
- if (fds[j] == target_fd) {
- do {
-+#if defined(F_DUPFD_CLOEXEC)
- fd = fcntl (fds[j], F_DUPFD_CLOEXEC, 3);
-+#else
-+ fd = fcntl (fds[j], F_DUPFD, 3);
-+ int flags = fcntl (fd, F_GETFD);
-+ if (flags == -1)
-+ {
-+ //errror
-+ }
-+ flags |= FD_CLOEXEC;
-+ if (fcntl (fd, F_SETFD, FD_CLOEXEC) == -1)
-+ {
-+ //error
-+ }
-+#endif
- } while (fd == -1 && errno == EINTR);
- if (fd == -1)
- _exit (127);