Deal all,<br><br>In EmbedPrivate.cpp,<br><br>EmbedPrivate::~EmbedPrivate()<br>{<br>&nbsp; sWindowList-&gt;RemoveElement(this);<br>&nbsp; sWidgetCount--;<br>&nbsp; mNeedFav = PR_FALSE;<br>&nbsp; if (mProgress)<br>&nbsp;&nbsp;&nbsp; mProgress-&gt;Shutdown();<br>
&nbsp; if (mEventListener)<br>&nbsp;&nbsp;&nbsp; mEventListener-&gt;Shutdown();<br>&nbsp; mOwningWidget = nsnull;<br>&nbsp; if (sWidgetCount) return;<br>&nbsp; gboolean bval = FALSE;<br>&nbsp; if (gtk_moz_embed_common_get_pref (G_TYPE_BOOLEAN,&quot;gtkmozembed.no_destroy_on_last_window&quot;, &amp;bval) &amp;&amp; bval)<br>
&nbsp;&nbsp;&nbsp; return;<br>&nbsp; int pid = getpid();<br>&nbsp; EmbedCommon::DeleteInstance();<br>&nbsp; EmbedGlobalHistory::DeleteInstance();<br>&nbsp; kill (pid, SIGUSR1);<br>&nbsp; kill (pid, SIGKILL);<br>}<br clear="all"><br>Why shall we kill pid in the end? Can&#39;t the program exit normally?<br>
-- <br>Best Regards,<br><br>Zhihai Wang<br>