Re: closing extra fd's in gnome_execute_*



On Mon, 11 Jan 1999, Manish Vachharajani wrote:
> Consider this.  I am running program foo.  foo opens a 30 megabyte file.
> While the file is open it runs gnome_execute_async, say for the
> help-browser or something.  Now my disk runs out of space, so I rm the 30
> meg file after quitting application foo.  Unfortunately, I won't regain
> that space until I close the help-browser.  If foo happens to start many
> programs, I have to quit them all before the space will be freed.  This
> will definitely bite us in the ass as well.  We really should close the
> fd's unless we want other behavior.

Some programs even use magic fd numbers to facilitate fd passing between
programs aware of these magic numbers. 

The default should be to close the fds; to do otherwise would violate
the Principle of Least Surprise...

	Jeff







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]