GUnixMount does not report errors during unmount
Submitted by Noah Massey
Link to original bug (#722064)
Description
Created attachment 266085 Correct the eject_unmount_cb source object
The eject_unmount_do_cb is hooking up the wrong GSource to the eject_unmount_cb. It should hook up child_watch, but instead is attaching the error_channel_source.
This has two effects:
-
It masks the previous CB the error_channel_source was attached to, so strings "unmount" writes to standard error are not captured.
-
It causes the async unmount to complete on the first trigger of the error channel, while the unmount process is still running.
Patch attached.
2.36 and above.
Patch 266085, "Correct the eject_unmount_cb source object":
0001-gunixmount.c-Correct-eject_unmount_cb-source-object.patch
Version: 2.36.x