Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/kern Apply patch (requested by christos):



details:   https://anonhg.NetBSD.org/src/rev/2a97ede279b0
branches:  netbsd-1-5
changeset: 493102:2a97ede279b0
user:      he <he%NetBSD.org@localhost>
date:      Sat Apr 27 15:52:56 2002 +0000

description:
Apply patch (requested by christos):
  Adapt previous pull-up to the branch.

diffstat:

 sys/kern/kern_descrip.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (26 lines):

diff -r a45c06bd6d87 -r 2a97ede279b0 sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c   Sat Apr 27 10:31:52 2002 +0000
+++ b/sys/kern/kern_descrip.c   Sat Apr 27 15:52:56 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_descrip.c,v 1.67.4.7 2002/04/26 17:51:19 he Exp $ */
+/*     $NetBSD: kern_descrip.c,v 1.67.4.8 2002/04/27 15:52:56 he Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -1438,15 +1438,12 @@
                        VOP_UNLOCK(nd.ni_vp, 0);
                        devnull = fd;
                        devnullfp = fp;
-                       FILE_SET_MATURE(fp);
                        FILE_UNUSE(fp, p);
                } else {
 restart:
                        if ((error = fdalloc(p, 0, &fd)) != 0) {
-                               if (error == ENOSPC) {
-                                       fdexpand(p);
+                               if (error == ERESTART)
                                        goto restart;
-                               }
                                return error;
                        }
 



Home | Main Index | Thread Index | Old Index