Skip to content

Commit

Permalink
win32: use nullStdin instead of /dev/null
Browse files Browse the repository at this point in the history
Summary:
On Windows, `/dev/null` is meaningless, use the `nullStdin` method instead.

Created from CodeHub with https://fburl.com/edit-in-codehub

Reviewed By: genevievehelsel

Differential Revision: D51056121

fbshipit-source-id: 08502767a25178d77ed98152a1cc6539c7007d64
  • Loading branch information
xavierd authored and facebook-github-bot committed Nov 9, 2023
1 parent 7f8e164 commit 8827452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watchman/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ static SpawnResult spawn_win32(const std::vector<std::string>& daemon_argv) {

ChildProcess::Options opts;
opts.setFlags(POSIX_SPAWN_SETPGROUP);
opts.open(STDIN_FILENO, "/dev/null", O_RDONLY, 0666);
opts.nullStdin();
opts.open(
STDOUT_FILENO,
logging::log_name.c_str(),
Expand Down

0 comments on commit 8827452

Please sign in to comment.