r9619: Fix messages_pending_for_pid actually do what it's meant to do. This might be
authorVolker Lendecke <vlendec@samba.org>
Thu, 25 Aug 2005 17:46:13 +0000 (17:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:03:23 +0000 (11:03 -0500)
commit56fd626fe710f24201b1f413f8b7b28a919df0c4
treedb01ae60a92132c304988e2403ab0d86eff709ab
parent013ac99a9dce268dcc46bccb8754aacced931157
r9619: Fix messages_pending_for_pid actually do what it's meant to do. This might be
a big relief on messages.tdb contention as ignoring processes with >1000
messages in printing/notify.c should work correctly now.

Jeremy, Jerry told me to ask you about printer scalability torture tests, this
might be a reason why you implemented the message_send_pid_with_timeout
using the signal (shudder) in the first place. :-)

While looking at that... Wouldn't it be better to not use the signal but have
an overall timeout for print_notify_send_messages using GetTimeOfDay & friends
and not use the alarm signal deep inside tdb.c?

Volker
(This used to be commit b5e82bb512d3425839e061e78f4d6fe0bd05b708)
source3/lib/messages.c