summaryrefslogtreecommitdiffstats
path: root/sdpd/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-11-17 13:17:00 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-11-17 13:17:00 +0000
commit569abc7679a7ba14d2d9edef7e000d28c21d955b (patch)
treed581d0a692028b0813b6b624290ce2448c8a8479 /sdpd/main.c
parent4c82b98bd90b389c616c71b5e75ef7096c3461c1 (diff)
Stop logging on exit
Diffstat (limited to 'sdpd/main.c')
-rw-r--r--sdpd/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sdpd/main.c b/sdpd/main.c
index d3fba1ac..3065e200 100644
--- a/sdpd/main.c
+++ b/sdpd/main.c
@@ -476,7 +476,7 @@ int main(int argc, char *argv[])
num = pselect(active_maxfd + 1, &mask, NULL, NULL, NULL, &sigs);
if (num <= 0) {
debug("Select error:%s", strerror(errno));
- goto exit;
+ break;
}
if (FD_ISSET(l2cap_sock, &mask)) {
@@ -505,7 +505,9 @@ int main(int argc, char *argv[])
check_active(&mask, num);
}
-exit:
sdp_svcdb_reset();
+
+ stop_logging();
+
return 0;
}