Skip to contentSkip to conversation

better return code handling in rfcomm command

Bluez-users wim delvaux 1 participant 1 message Jan 10, 2003 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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