Displaying 4 results from an estimated 4 matches for "new_pids".
Did you mean:
  new_ids
  
2017 Apr 07
1
[PATCH 1/2] mllib: add new Common_utils.run_commands
...| Unix.Unix_error (errcode, _, _) when errcode = Unix.ENOENT ->
+          res.(i) <- 127;
+          None
+    ) cmds in
+  let pids = filter_map (fun x -> x) pids in
+  let pids = ref pids in
+  while !pids <> [] do
+    let pid, stat = Unix.waitpid [] 0 in
+    let matching_pair, new_pids =
+      List.partition (
+        fun (_, p, _, _, _) ->
+          pid = p
+      ) !pids in
+    if matching_pair <> [] then (
+      let matching_pair = List.hd matching_pair in
+      let idx, _, app, outfd, errfd = matching_pair in
+      may Unix.close outfd;
+      may Unix.close e...
2017 Jun 20
2
[PATCH v2 1/2] mllib: add new Common_utils.run_commands
...>
+          Some (i, pid, app, outfd, errfd)
+        | Or code ->
+          res.(i) <- code;
+          None
+    ) cmds in
+  let pids = filter_map identity pids in
+  let pids = ref pids in
+  while !pids <> [] do
+    let pid, stat = Unix.waitpid [] 0 in
+    let matching_pair, new_pids =
+      List.partition (
+        fun (_, p, _, _, _) ->
+          pid = p
+      ) !pids in
+    if matching_pair <> [] then (
+      let matching_pair = List.hd matching_pair in
+      let idx, _, app, outfd, errfd = matching_pair in
+      pids := new_pids;
+      res.(idx) <- do_t...
2017 Jun 20
0
[PATCH v2 2/2] dib: use Common_utils.run_commands
...outfd Unix.stderr in
-              (pid, csum_tool, outfd)
+              [ csum_tool; fn ], Some outfd, None
           ) checksums in
-        let pids = ref pids in
-        while !pids <> [] do
-          let pid, stat = Unix.waitpid [] 0 in
-          let matching_pair, new_pids =
-            List.partition (
-              fun (p, tool, outfd) ->
-                pid = p
-            ) !pids in
-          if matching_pair <> [] then (
-            let matching_pair = List.hd matching_pair in
-            let _, csum_tool, outfd = matching_pair in
-            Un...
2017 Feb 02
7
[PATCH 0/6] dib: various improvements
Hi,
this series improves virt-dib, adding some upstream changes, and
refactoring the handling of output formats.
Thanks,
Pino Toscano (6):
  dib: clear up "already provided" message
  dib: add --checksum
  dib: pass custom mkfs options after the filesystem type
  dib: refactor output formats handling
  dib: clarify "output:" lines in --machine-readable documentation
  dib: