summaryrefslogtreecommitdiff
path: root/source3/printing/queue_process.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-08-03 16:55:30 -0400
committerAndreas Schneider <asn@samba.org>2011-08-10 18:14:03 +0200
commit88b901b6ee92ea5eb4420981625fb6a6b299e368 (patch)
tree90cd65f07aff8291daa2d7c03cd133579ae07b3c /source3/printing/queue_process.c
parent74f3e52f009126aad7a039d02e42f5c60e6209a8 (diff)
downloadsamba-88b901b6ee92ea5eb4420981625fb6a6b299e368.tar.gz
samba-88b901b6ee92ea5eb4420981625fb6a6b299e368.tar.bz2
samba-88b901b6ee92ea5eb4420981625fb6a6b299e368.zip
s3-printing: No need to register to smbd's children list
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/printing/queue_process.c')
-rw-r--r--source3/printing/queue_process.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/source3/printing/queue_process.c b/source3/printing/queue_process.c
index 48e5f771c9..291a47fcda 100644
--- a/source3/printing/queue_process.c
+++ b/source3/printing/queue_process.c
@@ -156,22 +156,6 @@ static void printing_pause_fd_handler(struct tevent_context *ev,
exit_server_cleanly(NULL);
}
-extern struct child_pid *children;
-extern int num_children;
-
-static void add_child_pid(pid_t pid)
-{
- struct child_pid *child;
-
- child = SMB_MALLOC_P(struct child_pid);
- if (child == NULL) {
- DEBUG(0, ("Could not add child struct -- malloc failed\n"));
- return;
- }
- child->pid = pid;
- DLIST_ADD(children, child);
- num_children += 1;
-}
pid_t background_lpq_updater_pid = -1;
@@ -201,9 +185,6 @@ static void start_background_queue(struct tevent_context *ev,
exit(1);
}
- /* Track the printing pid along with other smbd children */
- add_child_pid(background_lpq_updater_pid);
-
if(background_lpq_updater_pid == 0) {
struct tevent_fd *fde;
int ret;