patch-2.4.0-test7 linux/fs/ioctl.c

Next file: linux/fs/isofs/dir.c
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/fs/ioctl.c linux/fs/ioctl.c
@@ -58,11 +58,11 @@
 	lock_kernel();
 	switch (cmd) {
 		case FIOCLEX:
-			FD_SET(fd, current->files->close_on_exec);
+			set_close_on_exec(fd, 1);
 			break;
 
 		case FIONCLEX:
-			FD_CLR(fd, current->files->close_on_exec);
+			set_close_on_exec(fd, 0);
 			break;
 
 		case FIONBIO:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)