KDE/kdebase/workspace

Thiago Macieira thiago at kde.org
Fri Oct 27 13:29:43 BST 2006


Clarence Dang wrote:
>On Wednesday 25 October 2006 08:51, Thiago Macieira wrote:
>> Use a slightly more intelligent way of detecting whether the D-Bus
>> daemon is running: instead of trying to kill -0 it, try to connect to
>> its address (using qdbus).
>
>What's "kill -0"!?
>
>$ kill -l
>1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL

0 is no signal at all. But it tests whether you're allowed to send a 
signal to that process.

kill -0 can produce one of three effects:
1) no effect = you can send signals
2) ESRCH = the PID points to no process
3) EPERM = you're not allowed to send signals to this process (owned by 
another user)

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    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: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061027/3cf6b799/attachment.sig>


More information about the kde-core-devel mailing list