patch-2.2.18 linux/fs/ioctl.c
Next file: linux/fs/lockd/Makefile
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Thu Aug 31 15:57:50 2000
- Orig file:
v2.2.17/fs/ioctl.c
- Orig date:
Fri Apr 21 12:46:43 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/fs/ioctl.c linux/fs/ioctl.c
@@ -84,8 +84,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)