DragonFly bugs List (threaded) for 2005-10
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: panic on HEAD
:=46rom sources dated Sep. 8th, I got a panic after 33 days of uptime.
:
:kernel and core at leaf:~pavalos/public/*.3
:
:--Peter
Looks like a bug in fsetfd()... it wasn't returning an error
code when it should have been.
I'm going to do a quick test of this patch to make sure it doesn't
blow anything up, then commit it.
-Matt
Index: kern_descrip.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_descrip.c,v
retrieving revision 1.48
diff -u -r1.48 kern_descrip.c
--- kern_descrip.c 9 Oct 2005 18:07:55 -0000 1.48
+++ kern_descrip.c 12 Oct 2005 16:34:44 -0000
@@ -70,7 +70,7 @@
*
* @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94
* $FreeBSD: src/sys/kern/kern_descrip.c,v 1.81.2.19 2004/02/28 00:43:31 tegge Exp $
- * $DragonFly: src/sys/kern/kern_descrip.c,v 1.48 2005/10/09 18:07:55 corecode Exp $
+ * $DragonFly$
*/
#include "opt_compat.h"
@@ -1111,7 +1111,7 @@
p->p_fd->fd_files[fd].fp = fp;
}
*resultfd = fd;
- return (0);
+ return (error);
}
void
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]