From 060a1f8b64b41815c040050f2431741c6a49032d Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 7 May 2007 07:44:11 +0000 Subject: Child should always exit instead of returning from the function --- hcid/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hcid/main.c') 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)); -- cgit