]> git.tdb.fi Git - pmount-gui.git/commitdiff
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)
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.


No differences found