Use new mLib selbuf features.
[fwd] / exec.c
diff --git a/exec.c b/exec.c
index d81aeae..284bba4 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: exec.c,v 1.2 1999/10/22 22:46:17 mdw Exp $
+ * $Id: exec.c,v 1.3 2000/07/01 11:28:52 mdw Exp $
  *
  * Source and target for executable programs
  *
@@ -29,6 +29,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: exec.c,v $
+ * Revision 1.3  2000/07/01 11:28:52  mdw
+ * Use new mLib selbuf features.
+ *
  * Revision 1.2  1999/10/22 22:46:17  mdw
  * When a non-file endpoint is attached to a file, keep the file endpoint
  * open until the nonfile is done.  This stops socket sources from
@@ -748,8 +751,8 @@ static void xept_error(char *p, void *v)
   if (p)
     fw_log(-1, "[%s] pid %i: %s", xe->desc, xe->kid, p);
   else {
-    selbuf_disable(&xe->err);
     close(xe->err.reader.fd);
+    selbuf_destroy(&xe->err);
     xe->e.f |= XEF_CLOSE;
     if (xe->e.f & XEF_EXIT)
       xept_destroy(xe);