Messages in this thread | | | Date | Wed, 4 Jun 2003 06:53:36 +0100 | From | Christoph Hellwig <> | Subject | Re: [PATCH] [2.5] Non-blocking write can block |
| |
On Wed, Jun 04, 2003 at 01:58:02AM +0100, P. Benie wrote: > - if (down_interruptible(&tty->atomic_write)) { > - return -ERESTARTSYS; > + if (file->f_flags & O_NONBLOCK) { > + if (down_trylock(&tty->atomic_write)) > + return -EAGAIN; > + } > + else {
The else should be on the same line as the closing brace, else the patch looks fine. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |