From c095e79e4dd91872d161df5e7e8d5888961bac81 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Wed, 3 Jun 2009 21:33:31 +0000 Subject: [PATCH] actually close serial port on transport->close --- Makefile.iphone | 2 +- src/hci_transport_h4.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.iphone b/Makefile.iphone index 9c16f98b1..09f6b7d7c 100644 --- a/Makefile.iphone +++ b/Makefile.iphone @@ -45,6 +45,6 @@ $(NAME): $(SRCS) $(CXX) $(CXXFLAGS) -o $(NAME) $(filter %.mm,$^) $(filter %.m,$^) $(filter %.c,$^) $(LDFLAGS) export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate ; ldid -S $(NAME) ssh root@192.168.3.102 rm -f BTdaemon - scp $(NAME) root@192.168.3.102:. + scp $(NAME) root@192.168.3.102:/var/mobile .PHONY: all clean diff --git a/src/hci_transport_h4.c b/src/hci_transport_h4.c index b51b4b6ef..3ce01cce4 100644 --- a/src/hci_transport_h4.c +++ b/src/hci_transport_h4.c @@ -108,6 +108,7 @@ static int h4_open(void *transport_config){ static int h4_close(){ hci_dump_close(); + close(fd); return 0; }