Hello all, I sent this patch some days ago, but I saw that my e-mail client took the bluez-users address. Hopes to not annoy you sending it again (to the right place now). rfcomm program does not return proper error codes to the environment, this makes hard to use it from a shell script or from another program. Here goes a patch to fix it. I didn't have much time to test it, so any feedback is welcome. - Changes functions to return -1 on error and 0 on success - Adds missing error checks - Adds missing error messages - Fixes rfcomm exit() return codes rfcomm/main.c | 192 +++++++++++++++++++++++++++++++++++++++------------------- 1 files changed, 131 insertions(+), 61 deletions(-) -- Luiz Fernando N. Capitulino