diff options
author | Jeremy Allison <jra@samba.org> | 2000-10-11 02:04:46 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-10-11 02:04:46 +0000 |
commit | e9270d61fc8ddaecd8eb1d2c0a9ce8eba13b1194 (patch) | |
tree | e46d1fce7670af028e2b3cb0ed858b6c085b785d /source3/printing | |
parent | cdb71ca5181aa1e06bebe2fffb02dc39de83645e (diff) | |
download | samba-e9270d61fc8ddaecd8eb1d2c0a9ce8eba13b1194.tar.gz samba-e9270d61fc8ddaecd8eb1d2c0a9ce8eba13b1194.tar.bz2 samba-e9270d61fc8ddaecd8eb1d2c0a9ce8eba13b1194.zip |
Remove lpq as root fix - do this in print_job_start instead
as part of print queue length processing.
Jeremy.
(This used to be commit e85a0fadd8dcf608822819f00f15569713518806)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 486ef5d2c7..d71ea25d0d 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -1024,32 +1024,4 @@ BOOL print_queue_purge(struct current_user *user, int snum, int *errcode) return True; } - -/**************************************************************************** - Periodically run a status on all the queues to ensure the tdb doesn't grow. - Note that this will have no effect if the client is doing its own status - queries. This code is here to clean up jobs submitted by non-Windows printer - clients (eg. smbclient) that never do a status check. -****************************************************************************/ - -void process_print_queue(time_t t) -{ - static time_t last_check_time; - int services = lp_numservices(); - print_queue_struct *queue; - print_status_struct status; - int snum; - - if ((t != (time_t)-1) && ((t - last_check_time) < lp_lpqcachetime())) - return; - - last_check_time = t; - - for (snum = 0; snum < services; snum++) { - if (lp_snum_ok(snum) && lp_print_ok(snum) && lp_browseable(snum)) { - (void)print_queue_status(snum, &queue,&status); - safe_free(queue); - } - } -} #undef OLD_NTDOMAIN |