[maemo-developers] gtkmozembed: why kill itself in destructor?
From: Zhihai Wang pageguest at gmail.comDate: Wed Jan 14 13:38:12 EET 2009
- Previous message: Does anyone know the mechanism in Nokia's LCD driver?
- Next message: gtkmozembed: why kill itself in destructor?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090114/74b20218/attachment.htm
- Previous message: Does anyone know the mechanism in Nokia's LCD driver?
- Next message: gtkmozembed: why kill itself in destructor?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
