]> git.tdb.fi Git - pmount-gui.git/commit
Use select when reading mount command output
authorMikko Rasa <tdb@tdb.fi>
Sat, 19 Apr 2014 18:02:47 +0000 (21:02 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 19 Apr 2014 18:02:47 +0000 (21:02 +0300)
commit0bf882489848c7f19eb602e286d760c709685251
treee7579f55fc885343d57dcde553819dcb820d3b30
parent03333fb47e0bc27da1f74313618d4acf8ee10847
Use select when reading mount command output

If pmount ends up using FUSE to do the actual mounting, the filesystem
driver process inherits the output capture pipe.  In this case the write
end of the pipe stays open and read can block indefinitely.  Instead of
relying on read to return eof, call waitpid if select indicates no data
available.
main.c