In article <n6j3it$501$1...@ger.gmane.org>, Christos Zoulas <chris...@astron.com> wrote: > >As a temporary hack it is probably good enough. Longer term filemon >should be removed/rewritten, and the close ordering problem should >be handled.
I changed my mind; it does not help because one can always dup2 that file descriptor later to a lower fd and cause trouble. It is also confusing to the user. So it is really not a worthwhile hack to put. Perhaps a better hack is to have a filemon_disestablish hook at process exit that does the preliminary cleanup. christos