[mpich-commits] r10693 - mpich2/trunk/src/pm/hydra/pm/pmiserv

balaji at mcs.anl.gov balaji at mcs.anl.gov
Fri Nov 30 01:48:41 CST 2012


Author: balaji
Date: 2012-11-30 01:48:41 -0600 (Fri, 30 Nov 2012)
New Revision: 10693

Modified:
   mpich2/trunk/src/pm/hydra/pm/pmiserv/pmip_cb.c
Log:
Minor bug-fix in the stdin handling code.

No reviewer.

Modified: mpich2/trunk/src/pm/hydra/pm/pmiserv/pmip_cb.c
===================================================================
--- mpich2/trunk/src/pm/hydra/pm/pmiserv/pmip_cb.c	2012-11-29 21:43:43 UTC (rev 10692)
+++ mpich2/trunk/src/pm/hydra/pm/pmiserv/pmip_cb.c	2012-11-30 07:48:41 UTC (rev 10693)
@@ -933,7 +933,7 @@
             if (HYD_pmcd_pmip.user_global.auto_cleanup) {
                 HYDU_ASSERT(!closed, status);
             }
-            else {
+            else if (closed) {
                 close(HYD_pmcd_pmip.downstream.in);
                 HYD_pmcd_pmip.downstream.in = HYD_FD_CLOSED;
             }
@@ -942,6 +942,7 @@
         }
         else {
             close(HYD_pmcd_pmip.downstream.in);
+            HYD_pmcd_pmip.downstream.in = HYD_FD_CLOSED;
         }
     }
     else {



More information about the commits mailing list