signal to release an fd?

Stef Bon stefbon at gmail.com
Thu May 5 02:57:23 PDT 2011


Hi,

is there a way to signal an app, say swriter (LibreOffice/OpenOffice)
to release an fd?


I'm working on a construction which is a layer around the normal
system. It offers a totally different
environment, like GoboLinux.

One of the things is the easy access to removable devices like cdroms
and usb sticks, in the folder

/Computer/161-Transcend Jetflash Flash Drive

Now it's already possible to do a "safe remove" (or detach..) to this
device. This command simply does nothing when
it detects there is a fd still open on the resource. Well actually the
FUSE fs does that.

Now the FUSE fs maintains a list of open fd's, together with the pid
of the process which did the open.

Does anyone know it's possible to send a signal to this app to take
action (like offering a "close or copy to another location dialog")
to close the fd...

Stef


More information about the xdg mailing list