summaryrefslogtreecommitdiff
path: root/misc/mc/files/patch-src-background.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mc/files/patch-src-background.c')
-rw-r--r--misc/mc/files/patch-src-background.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/mc/files/patch-src-background.c b/misc/mc/files/patch-src-background.c
new file mode 100644
index 000000000000..95e20450fdbe
--- /dev/null
+++ b/misc/mc/files/patch-src-background.c
@@ -0,0 +1,11 @@
+--- src/background.c.orig Sat Sep 28 12:10:29 2002
++++ src/background.c Tue Jun 15 03:17:55 2004
+@@ -142,7 +142,7 @@
+ close (1);
+ close (2);
+
+- if ((nullfd = open ("/dev/null", O_RDONLY)) != -1){
++ if ((nullfd = open ("/dev/null", O_RDWR)) != -1){
+ while (dup2 (nullfd, 0) == -1 && errno == EINTR)
+ ;
+ while (dup2 (nullfd, 1) == -1 && errno == EINTR)