mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
merged 174_4.6_mandriva_pty_closeonexec
This commit is contained in:
commit
f072bf6d5c
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
2009-01-24 Patrick Winnertz <winnie@debian.org>
|
2009-01-24 Patrick Winnertz <winnie@debian.org>
|
||||||
|
|
||||||
* edit/editcmd.c: Fix some issues about regex:
|
* edit/editcmd.c: Fix some issues about regex:
|
||||||
@ -8,6 +9,8 @@
|
|||||||
|
|
||||||
* syntax/Syntax, syntax/nemerle.syntax: Added syntax rules
|
* syntax/Syntax, syntax/nemerle.syntax: Added syntax rules
|
||||||
for Nemerle source files
|
for Nemerle source files
|
||||||
|
* src/subshell.c: merged 174_4.6_mandriva_pty_closeonexec
|
||||||
|
(patch from mandriva)
|
||||||
|
|
||||||
2009-01-19 Patrick Winnertz <winnie@debian.org>
|
2009-01-19 Patrick Winnertz <winnie@debian.org>
|
||||||
|
|
||||||
@ -23,6 +26,11 @@
|
|||||||
* src/main.c: Removed unused function do_mc_filename_rename
|
* src/main.c: Removed unused function do_mc_filename_rename
|
||||||
* src/util.c: Removed unused struct whentm
|
* src/util.c: Removed unused struct whentm
|
||||||
|
|
||||||
|
2009-01-16 Enrico Weigelt, metux IT service <weigelt@metux.de>
|
||||||
|
|
||||||
|
* src/subshell: setting subshell pty to close-on-exec
|
||||||
|
(taken from mandriva patches)
|
||||||
|
|
||||||
2009-01-14 Slava Zanko <slavazanko@gmail.com>
|
2009-01-14 Slava Zanko <slavazanko@gmail.com>
|
||||||
|
|
||||||
* lib/mc.ext.in: change filemask for recognize 7z-files
|
* lib/mc.ext.in: change filemask for recognize 7z-files
|
||||||
|
@ -1110,6 +1110,7 @@ pty_open_slave (const char *pty_name)
|
|||||||
#endif /* I_FIND && I_PUSH */
|
#endif /* I_FIND && I_PUSH */
|
||||||
#endif /* __osf__ || __linux__ */
|
#endif /* __osf__ || __linux__ */
|
||||||
|
|
||||||
|
fcntl(pty_slave, F_SETFD, FD_CLOEXEC);
|
||||||
return pty_slave;
|
return pty_slave;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1163,6 +1164,7 @@ pty_open_slave (const char *pty_name)
|
|||||||
}
|
}
|
||||||
if ((pty_slave = open (pty_name, O_RDWR)) == -1)
|
if ((pty_slave = open (pty_name, O_RDWR)) == -1)
|
||||||
fprintf (stderr, "open (pty_name, O_RDWR): %s\r\n", pty_name);
|
fprintf (stderr, "open (pty_name, O_RDWR): %s\r\n", pty_name);
|
||||||
|
fcntl(pty_slave, F_SETFD, FD_CLOEXEC);
|
||||||
return pty_slave;
|
return pty_slave;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user