]> Zhao Yanbai Git Server - minix.git/commitdiff
Do not unmap a driver when the driver dies (it interferes with restarting
authorPhilip Homburg <philip@cs.vu.nl>
Mon, 15 May 2006 11:43:06 +0000 (11:43 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Mon, 15 May 2006 11:43:06 +0000 (11:43 +0000)
disk drivers). Fixed accounting for REVIVING/reviving.

servers/fs/misc.c
servers/fs/pipe.c

index 3776e74318249b1da108a3f1c0b195007b938672..d10abf5ed6f8a179f6d0781e4fc80f88e39ca03c 100644 (file)
@@ -398,7 +398,6 @@ PRIVATE void free_proc(struct fproc *exiter, int flags)
   if(!(flags & FP_EXITING))
        return;
 
-  dmap_unmap_by_endpt(fp->fp_endpoint);
   /* Invalidate endpoint number for error and sanity checks. */
   fp->fp_endpoint = NONE;
 
index 4282f8eefedbed345eadaea2d91b58234ba1fc65..25b8e51d2becbca3c947aa458bc97e37538e21b4 100644 (file)
@@ -359,6 +359,9 @@ int proc_nr_e;
   if (rfp->fp_suspended == NOT_SUSPENDED) return(OK);
   task = -rfp->fp_task;
 
+  if (rfp->fp_revived == REVIVING)
+       reviving--;
+
   switch (task) {
        case XPIPE:             /* process trying to read or write a pipe */
                break;