pespin has uploaded this change for review.

View Change

cups_client: Log conn lost before tear down subprocesses

Change-Id: I32b56fddc32b95cf15c30b2c9cfc272a8678857b
---
M daemon/cups_client.c
1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-uecups refs/changes/93/40793/1
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: newchange
Gerrit-Project: osmo-uecups
Gerrit-Branch: master
Gerrit-Change-Id: I32b56fddc32b95cf15c30b2c9cfc272a8678857b
Gerrit-Change-Number: 40793
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>