On Tue, Jan 18, 2000 at 07:14:36PM +0100, Michael Natterer <[EMAIL PROTECTED]>
wrote:
> Well, STATUS_CANCEL would be a way to cleanly cancel a plugin. And pressing
> "Cancel" in the "Save as Whatwver" dialog of course causes the plugin to
> exit cleanly without leaving any garbage
This is wrong! Pressing cancel will simply drop the connection to the
plug-in, which will happily run (since it has no way of detecting this)
for as long as it wants. Only on the next call the a libgimp function
causing communication will libgimp call exit(0).
_No_ files or other persistent resources will ever be removed without
special support from the plug-in (which I do not see in the plug-ins), and
there is no way of detecting this from a plug-in while it runs.
> And... I think "Cancel" is _not_ an error.
Ok. However, the effect of Cancel is about the same as a delayed kill, and
I regard this as serious enough as to warn about :(
I admit that an error message might not be appropriate, but the current
canceling mechanism is unstable at least.
> value. But if you have a better idea, please tell me.
I mailed it to the list quite a few times.
--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED] |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|