Skip to content

Commit

Permalink
Close /dev/null descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenth committed Feb 5, 2015
1 parent b61cdda commit a0a855a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/release.ml
Expand Up @@ -351,7 +351,7 @@ struct
let close_and_dup fd =
Future.Unix.close fd >>= fun () ->
Future.Unix.dup2 dev_null fd;
return_unit in
Future.Unix.close dev_null in
let descrs =
[Future.Unix.stdin; Future.Unix.stdout; Future.Unix.stderr] in
Future.iter_p close_and_dup descrs >>= fun () ->
Expand Down

0 comments on commit a0a855a

Please sign in to comment.