Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 Add FNOSIGPIPE for compat32; noted by yamt.



details:   https://anonhg.NetBSD.org/src/rev/b22f640efdf3
branches:  trunk
changeset: 773027:b22f640efdf3
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 25 14:06:07 2012 +0000

description:
Add FNOSIGPIPE for compat32; noted by yamt.

diffstat:

 sys/compat/netbsd32/netbsd32_fs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 47977b93d385 -r b22f640efdf3 sys/compat/netbsd32/netbsd32_fs.c
--- a/sys/compat/netbsd32/netbsd32_fs.c Wed Jan 25 14:04:09 2012 +0000
+++ b/sys/compat/netbsd32/netbsd32_fs.c Wed Jan 25 14:06:07 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_fs.c,v 1.61 2011/06/05 08:42:59 dsl Exp $     */
+/*     $NetBSD: netbsd32_fs.c,v 1.62 2012/01/25 14:06:07 christos Exp $        */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_fs.c,v 1.61 2011/06/05 08:42:59 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_fs.c,v 1.62 2012/01/25 14:06:07 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -296,7 +296,7 @@
                if (auio.uio_resid != cnt && (error == ERESTART ||
                    error == EINTR || error == EWOULDBLOCK))
                        error = 0;
-               if (error == EPIPE) {
+               if (error == EPIPE && (fp->f_flag & FNOSIGPIPE) == 0) {
                        mutex_enter(proc_lock);
                        psignal(curproc, SIGPIPE);
                        mutex_exit(proc_lock);



Home | Main Index | Thread Index | Old Index