pespin submitted this change.
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
cups_client: Log conn lost before tear down subprocesses
Change-Id: I32b56fddc32b95cf15c30b2c9cfc272a8678857b
---
M daemon/cups_client.c
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/daemon/cups_client.c b/daemon/cups_client.c
index b72ebd7..868480c 100644
--- a/daemon/cups_client.c
+++ b/daemon/cups_client.c
@@ -617,14 +617,14 @@
struct gtp_daemon *d = cc->d;
struct subprocess *p, *p2;
+ LOGCC(cc, LOGL_INFO, "UECUPS connection lost\n");
+
/* kill + forget about all subprocesses of this client */
/* We need no locking here as the subprocess list is only used from the main thread */
llist_for_each_entry_safe(p, p2, &d->subprocesses, list) {
if (p->cups_client == cc)
subprocess_destroy(p, SIGKILL);
}
-
- LOGCC(cc, LOGL_INFO, "UECUPS connection lost\n");
llist_del(&cc->list);
return 0;
}
To view, visit change 40793. To unsubscribe, or for help writing mail filters, visit settings.