Skip to content

Commit 1d53d82

Browse files
committed
vmm_unix: pass stdout also as stdin (TODO revise before merge)
bhyve tries to 'mevent_add(.., EVF_READ, ..)' which fails for /dev/null
1 parent a6604db commit 1d53d82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vmm_unix.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ let read_fd_for_file = fd_for_file Unix.[ O_RDONLY ]
9090

9191
let write_fd_for_file = fd_for_file Unix.[ O_WRONLY ; O_APPEND ]
9292

93-
let null = match read_fd_for_file (Fpath.v "/dev/null") with
93+
let _null = match read_fd_for_file (Fpath.v "/dev/null") with
9494
| Ok fd -> fd
9595
| Error _ -> invalid_arg "cannot read /dev/null"
9696

9797
let rec create_process prog args stdout =
98-
try Unix.create_process prog args null stdout stdout with
98+
try Unix.create_process prog args stdout stdout stdout with
9999
| Unix.Unix_error (Unix.EINTR, _, _) ->
100100
create_process prog args stdout
101101

0 commit comments

Comments
 (0)