Hi all, just found out that some errors do not cause rfcomm to retrun with exit != 0 It seems that the 'func' field in the command jump table should return int and not void. All commands can then return an error code (probably one that was generate by an deeper function) and cause exit to return proper return values. Patch attached