Just a little note about this patch. This part: + /* Did we find it? */ + if (!c || c->pid != msg->service_pid) { + syslog(LOG_ERR, "can't find pid %d to process message %d", + msg->service_pid, msg->message); + return;
We found that this actually occured quite-regularly, especially on a dual proc machine. It seems that the child can be reaped by the master before the master receives the message from the child. So I don't know if it should be logged as an error, or just ignored... Rob ----- Original Message ----- From: "Henrique de Moraes Holschuh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 17, 2002 3:34 AM Subject: [PATCH] 2.1.4 master process counting (cleaned up) > This is a slightly updated version of the patch, rediffed to apply cleanly > to 2.1.4 as distributed in the tarball. It logs when child die for no good > reason, so it should help address concerns that it would mask a worse > problem. > > -- > "One disk to rule them all, One disk to find them. One disk to bring > them all and in the darkness grind them. In the Land of Redmond > where the shadows lie." -- The Silicon Valley Tarot > Henrique Holschuh >