Connection dropped with extended ascii strings
Thiago Macieira
thiago at kde.org
Thu Dec 11 04:44:14 PST 2008
On Thursday 11 December 2008 11:34:56 Per Inge Mathisen wrote:
> On Wed, 2008-12-10 at 12:10 -0500, Havoc Pennington wrote:
> > See also https://bugs.freedesktop.org/show_bug.cgi?id=16338
>
> The idea of a library calling _exit() on behalf of an application just
> like that is really, really horrible.
The reason is that most applications using D-Bus are tied to the session
they're running on. And, given normal operating circumstances, the connection
only drops when the session exits.
So the application should exit too. The default is to call _exit so that, if
you want to disable that behaviour, you'll be reminded to implement your own
exiting procedures.
> But that does not seem to be the
> case any more, though?
No. You're being forcibly disconnected by the bus because you sent an invalid
message. To protect the rest of the applications from malicious and invalid
messages (and also to get your attention, like it has done), it kicks you off
the bus.
Like I said above, under *normal* operating circumstances, you only get
disconnected if the session is exiting. By normal, I'm excluding:
* daemon crashes and bugs
* user stupidly killing the process
* invalid messages you're sending
* distributions restarting the system daemon on upgrade
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Software Engineer - Nokia, Qt Software
Qt Software is hiring - ask me
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20081211/3d47081a/attachment.pgp
More information about the dbus
mailing list