Skip to content

Commit

Permalink
work around strange cygwin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
riedel committed Jun 20, 2019
1 parent 904556c commit 7841f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s/sudo
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ echo "$command_to_run" >"$fifoid.command"
for fd in 0 1 2; do
if [ -t $fd ]; then
# Terminal
echo "/proc/$$/fd/$fd" >"$fifoid.fd$fd"
readlink "/proc/$$/fd/$fd" >"$fifoid.fd$fd"
else
# Not terminal
mkfifo "$fifoid.pipe$fd"
Expand Down

0 comments on commit 7841f67

Please sign in to comment.