NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/45545
The following reply was made to PR kern/45545; it has been noted by GNATS.
From: "U.Nakamura" <usa%garbagecollect.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/45545
Date: Tue, 01 Nov 2011 00:06:13 +0900
I've debugged this problem with Naruse-san, and wrote a patch.
Index: sys_descrip.c
===================================================================
RCS file: /cvs/cvsroot/src/sys/kern/sys_descrip.c,v
retrieving revision 1.22
diff -p -U 3 -r1.22 sys_descrip.c
--- sys_descrip.c 26 Jun 2011 16:42:42 -0000 1.22
+++ sys_descrip.c 31 Oct 2011 15:04:40 -0000
@@ -759,5 +759,7 @@ sys_pipe2(struct lwp *l, const struct sy
return error;
fd[0] = retval[0];
fd[1] = retval[1];
- return copyout(fd, SCARG(uap, fildes), sizeof(fd));
+ error = copyout(fd, SCARG(uap, fildes), sizeof(fd));
+ *retval = (error == 0) ? 0 : -1;
+ return error;
}
Home |
Main Index |
Thread Index |
Old Index