summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-05-07 07:44:11 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-05-07 07:44:11 +0000
commit060a1f8b64b41815c040050f2431741c6a49032d (patch)
tree454a76f13801162e8e40b4ef6f59e61058501b4e /hcid
parent251f743f1501e99176c4071487b93567e94fefaa (diff)
Child should always exit instead of returning from the function
Diffstat (limited to 'hcid')
-rw-r--r--hcid/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/main.c b/hcid/main.c
index 943d6cf4..f7b1bfd0 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -325,7 +325,7 @@ static void configure_device(int dev_id)
if (dd < 0) {
error("Can't open device hci%d: %s (%d)",
dev_id, strerror(errno), errno);
- return;
+ exit(1);
}
memset(&dr, 0, sizeof(dr));