Deal all,
In EmbedPrivate.cpp,
EmbedPrivate::~EmbedPrivate()
{
sWindowList->RemoveElement(this);
sWidgetCount--;
mNeedFav = PR_FALSE;
if (mProgress)
mProgress->Shutdown();
if (mEventListener)
mEventListener->Shutdown();
mOwningWidget = nsnull;
if (sWidgetCount) return;
gboolean bval = FALSE;
if (gtk_moz_embed_common_get_pref
(G_TYPE_BOOLEAN,"gtkmozembed.no_destroy_on_last_window", &bval) && bval)
return;
int pid = getpid();
EmbedCommon::DeleteInstance();
EmbedGlobalHistory::DeleteInstance();
kill (pid, SIGUSR1);
kill (pid, SIGKILL);
}
Why shall we kill pid in the end? Can't the program exit normally?
--
Best Regards,
Zhihai Wang
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers