sindresorhus / trash

Move files and directories to the trash
MIT License
2.58k stars 79 forks source link

Hangs when trying to trash a fifo file #50

Closed eush77 closed 5 years ago

eush77 commented 7 years ago

On my Linux box, the following gets trash stuck:

$ mkfifo a.fifo
$ trash a.fifo
# (hangs)

The trace leads to mount-point and @sindresorhus/df, which spawn a df process which tries to open() a fifo file which gets blocked until the other end opens it first. Reported upstream: https://github.com/kevva/mount-point/issues/4.

kevva commented 5 years ago

https://github.com/kevva/mount-point/issues/4#issuecomment-528819467