Hello Marcel, Marcel Holtmann wrote: > lets keep it using "exit(1)". It is an historic issue. Send a patch for > the few cases we did it wrong. Okay, it's attached. Note that: 1) Some functions returns -1 on error, I didn't change it 2) Create all devices and release all devices returns success if all devices could be created (or released), otherwise it returns error (IOW, if we get an error to create or release at least one device, the program returns error) 3) I've added some missing checks 4) If you enter with an unknown parameter it does 'exit(1)' instead of 'exit(0)', because it's an error. rfcomm/main.c | 135 ++++++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 95 insertions(+), 40 deletions(-) PS: The parameters for raw terminal mode (-r) and configfile (-f) are not documented, I think a patch for it doesn't pay off. :) -- Luiz Fernando N. Capitulino