[JDEV] Parent PID bug patch

Keith Minkler kminkler at jabber.com
Mon Feb 12 22:49:00 CST 2001


Hey,

    Sorry for the confusion, but there is an error in base_stdout.c  Although the offending code is correct, and functions normally when <stdout/> is used in a child jabberd, the heartbeat registration was happening at the wrong time.. it was being done when the server was initializing, when it should have been initialized when it was verifying the <stdout/> tag in the config... Please use this patch to fix this problem.

    NOTE: this problem would occur when jabberd is run from a terminal, and the terminal is quit, or whenever the parent PID of the jabberd server changes.  This is the desired function when operating with <stdout/> however, so no other section of the code should be changed.

Here is the patch:

207c207,211
<     if(id == NULL) return r_PASS;
---
>     if(id == NULL) 
>     {
>         register_beat(2,base_stdout_heartbeat,NULL);
>         return r_PASS;
>     }
229d232
<     register_beat(2,base_stdout_heartbeat,NULL);


Keith Minkler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20010212/19935bd1/attachment-0002.pgp>


More information about the JDev mailing list