add -fPIC option to the C compiler, required in f31
[vsys.git] / directfifowatcher.ml
index 8e8b4dc..206ca53 100644 (file)
@@ -162,7 +162,8 @@ let sigchld_handle s =
             try
               let fqp_in,fd_out = Hashtbl.find pidmap pid in
                 begin
-                  reopenentry fqp_in
+                  reopenentry fqp_in;
+                  Hashtbl.remove pidmap pid
                 end
             with _ -> ()
           end;