svn commit: trunk/busybox/shell
vda at busybox.net
vda at busybox.net
Mon Feb 11 08:39:12 UTC 2008
Author: vda
Date: 2008-02-11 00:39:11 -0800 (Mon, 11 Feb 2008)
New Revision: 20979
Log:
hush: close-on-exec interactive_fd
Modified:
trunk/busybox/shell/hush.c
Changeset:
Modified: trunk/busybox/shell/hush.c
===================================================================
--- trunk/busybox/shell/hush.c 2008-02-11 08:35:03 UTC (rev 20978)
+++ trunk/busybox/shell/hush.c 2008-02-11 08:39:11 UTC (rev 20979)
@@ -3880,6 +3880,7 @@
}
debug_printf("interactive_fd=%d\n", interactive_fd);
if (interactive_fd) {
+ fcntl(interactive_fd, F_SETFD, FD_CLOEXEC);
/* Looks like they want an interactive shell */
setup_job_control();
/* -1 is special - makes xfuncs longjmp, not exit
@@ -3907,8 +3908,9 @@
/* give up */
interactive_fd = 0;
}
+ if (interactive_fd)
+ fcntl(interactive_fd, F_SETFD, FD_CLOEXEC);
}
-
#endif
if (argv[optind] == NULL) {
More information about the busybox-cvs
mailing list