posix

open() function hangs (never returns) when trying to open serial port in Mac OS X.

I've run into a problem where the open function never returns when I try to open a serial port. It doesn't happen all the time, and the problem disappears for a while if I unplug my USB to serial adapter and plug it back in. My code looks like this: fileDescriptor = open(bsdPath, O_RDWR | O_NOCTTY); where bsdPath is /dev/cu.KeySeria...