[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4750-gdec9368

Volker Lendecke vlendec at samba.org
Tue Dec 30 13:08:20 GMT 2008


The branch, v3-3-test has been updated
       via  dec9368e7458048b783bb2f967f578d5e094d805 (commit)
      from  fe100673121b73cc2091726d068d9a3e53bf494e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit dec9368e7458048b783bb2f967f578d5e094d805
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Dec 30 14:05:26 2008 +0100

    Fix a spinning smbd when printing
    
    Without this, we end up adding more than one timed event. In the event handler
    print_notify_event_send_messages() only one event will be deleted, all others
    will fire indefinitely.

-----------------------------------------------------------------------

Summary of changes:
 source/printing/notify.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/printing/notify.c b/source/printing/notify.c
index f6599c4..b24a8a5 100644
--- a/source/printing/notify.c
+++ b/source/printing/notify.c
@@ -322,7 +322,7 @@ to notify_queue_head\n", msg->type, msg->field, msg->printer));
 	DLIST_ADD_END(notify_queue_head, pnqueue, struct notify_queue *);
 	num_messages++;
 
-	if (smbd_event_context()) {
+	if ((notify_event == NULL) && (smbd_event_context() != NULL)) {
 		/* Add an event for 1 second's time to send this queue. */
 		notify_event = event_add_timed(smbd_event_context(), NULL,
 					timeval_current_ofs(1,0),


-- 
Samba Shared Repository


More information about the samba-cvs mailing list