Skip to content

Commit

Permalink
More specific fix to spurious "ps" stderr output (#3314)
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGr committed May 16, 2018
1 parent 32f2b4a commit 265ea20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/opamStd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,8 @@ module OpamSys = struct
with e ->
fatal e;
try
with_process_in "ps" (Printf.sprintf "-p %d -o comm=" ppid)
with_process_in "ps"
(Printf.sprintf "-p %d -o comm= 2>/dev/null" ppid)
(fun ic -> Some (input_line ic))
with
| Unix.Unix_error _ | Sys_error _ | Failure _ | End_of_file | Not_found ->
Expand Down

0 comments on commit 265ea20

Please sign in to comment.