patch-2.4.0-test2 linux/fs/ioctl.c
Next file: linux/fs/lockd/clntproc.c
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Wed Jun 21 10:10:02 2000
- Orig file:
v2.4.0-test1/linux/fs/ioctl.c
- Orig date:
Tue Apr 11 15:09:22 2000
diff -u --recursive --new-file v2.4.0-test1/linux/fs/ioctl.c linux/fs/ioctl.c
@@ -88,8 +88,12 @@
/* Did FASYNC state change ? */
if ((flag ^ filp->f_flags) & FASYNC) {
if (filp->f_op && filp->f_op->fasync)
- filp->f_op->fasync(fd, filp, on);
+ error = filp->f_op->fasync(fd, filp, on);
+ else error = -ENOTTY;
}
+ if (error != 0)
+ break;
+
if (on)
filp->f_flags |= FASYNC;
else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)