Index: hciattach.c =================================================================== RCS file: /cvsroot/bluez/utils/tools/hciattach.c,v retrieving revision 1.41 diff -u -r1.41 hciattach.c --- hciattach.c 10 Aug 2006 10:21:01 -0000 1.41 +++ hciattach.c 5 Oct 2006 20:19:50 -0000 @@ -1255,6 +1255,10 @@ return 0; } + /* set a new process group so that ctrl-c + won't abort the detached process */ + setpgrp(); + for (i = 0; i < 20; i++) if (i != n) close(i);