Re: closing extra fd's in gnome_execute_*
- From: Jeff Garzik <jgarzik pobox com>
- To: Manish Vachharajani <mvachhar vger rutgers edu>
- cc: Edward A Carter <ecarter U Arizona EDU>, Elliot Lee <sopwith redhat com>, Martin Baulig <martin home-of-linux org>, gnome-list gnome org
- Subject: Re: closing extra fd's in gnome_execute_*
- Date: Mon, 11 Jan 1999 11:41:53 -0500 (EST)
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]