On Feb 26, 4:06 pm, p2 wrote:
> Hi
>
> I used open function to open bluetooth port on MacOS 10.5.1.
>
> My code is as below
>
> int fd = -1;
> fd = open(Bluetooth port path,O_RDWR + O_NOCTTY + O_NONBLOCK +
> O_EXLOCK);
> if(fd == -1)
> printf("\nPort open failed..");
> else
> {
> printf("\nPort successfully opened..);
> close(fd);
>
> }
>
> but it hangs in open function, it is not returning....i also tried
> with various flags..
> Note :: Same thing works on MacOS 10.4(it's return success or failed)
>
> What may be the problem ?
>
> p2
I do operation in sequence open then close then again open
immediately...
first time it open successfully .. second time it hand in open. (open
function block)
>> Stay informed about: open function hang on MacOS 10.5.1