Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Don't ERESTART write() calls for now.



details:   https://anonhg.NetBSD.org/src/rev/3b65160beb55
branches:  trunk
changeset: 750083:3b65160beb55
user:      dsl <dsl%NetBSD.org@localhost>
date:      Tue Dec 15 18:35:18 2009 +0000

description:
Don't ERESTART write() calls for now.
I suspect some programs don't allow for the partial transfer.

diffstat:

 sys/kern/sys_pipe.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r dd534de38b74 -r 3b65160beb55 sys/kern/sys_pipe.c
--- a/sys/kern/sys_pipe.c       Tue Dec 15 18:24:47 2009 +0000
+++ b/sys/kern/sys_pipe.c       Tue Dec 15 18:35:18 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_pipe.c,v 1.125 2009/12/13 20:02:23 dsl Exp $       */
+/*     $NetBSD: sys_pipe.c,v 1.126 2009/12/15 18:35:18 dsl Exp $       */
 
 /*-
  * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.125 2009/12/13 20:02:23 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.126 2009/12/15 18:35:18 dsl Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -997,10 +997,12 @@
                        if (bp->cnt)
                                pipeselwakeup(wpipe, wpipe, POLL_IN);
 
+#if 0 /* I think some programs don't like the partial write... */
                        if (slept) {
                                error = ERESTART;
                                break;
                        }
+#endif
 
                        pipeunlock(wpipe);
                        error = cv_wait_sig(&wpipe->pipe_wcv, lock);



Home | Main Index | Thread Index | Old Index