[Gimp-developer] "quit" signal for plugins
Glimmer Labs
glimmer07 at gmail.com
Tue Feb 10 06:44:47 PST 2009
On Thu, Feb 5, 2009 at 3:12 PM, Sven Neumann <sven at gimp.org> wrote:
>
> I think it would make sense to call the quit method in all running
> plug-ins when the core is quit. So a patch that does this would be much
> appreciated. We need to somehow deal with the problem of hanging
> plug-ins though.
>
>
> Sven
>
I can code up a patch if we can figure out how to prevent stalling.
My approach would be to fork and call the quit method in the child,
then if the child doesn't return in two seconds, pop up a dialog
informing the user that a plug in is not responding and give them
the option to terminate it.
I don't know how the GIMP deals with threading though, so I'm
not sure that that is appropriate in this case.
Someone earlier mentioned a non-blocking wait, does the GIMP
have some system in place for doing that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /lists/gimp-developer/attachments/20090210/5cb93e3b/attachment.html
More information about the Gimp-developer
mailing list