pespin submitted this change.

View Change



1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Approvals: osmith: Looks good to me, approved laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified
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.

Gerrit-MessageType: merged
Gerrit-Project: osmo-uecups
Gerrit-Branch: master
Gerrit-Change-Id: I32b56fddc32b95cf15c30b2c9cfc272a8678857b
Gerrit-Change-Number: 40793
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>