During use with the option enable_hci the program waits for almost infinite:
if (enable_hci) {
proc_enable_hci();
while (1) {
sleep(UINT_MAX);
}
}
UINT_MAX is a very big value.
While ending the program with ^C after the message "Done setting line
discpline" seem to be working fine.
Is the sleep really requered ?