[gtk-vnc-devel] Problem with slow shutdown



There's a similar problem to my previous posting related to shutting down the coroutine.

For example, here is the sequence of events when my plugin is destroyed:

NPP_Destroy		# called by the browser
calling vnc_display_close
Requesting that VNC close
Requesting graceful shutdown of connection
Waking up couroutine to shutdown gracefully
NPP_Shutdown		# !!browser could unmap code any time!!
Got all credentials
Auth failed
Doing final VNC cleanup
Requesting that VNC close
Releasing VNC widget

Luckily the browser _doesn't_ seem to unmap the code, so this time at least it doesn't segfault, but there is no particular guarantee of that.

Is there a way that I can wait for the shutdown to complete?

Rich.

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



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