I have a USB serial port module and I want to use it in my C application. The problem is the **open** system call doesn't return!

> 
> int serialDevice = open("/dev/ttyUSB0", O\_RDWR | O\_NOCTTY); // doesn't return
> 
> 
> 

I added my user to dialout group and I can access the port without root access using minicom in terminal. So it's not permission problem. Even if it is, it should return instantly and give permission error. But open function doesn't return at all.

What should I do? Do you have any idea?

Thanks