Unconditionally set O_NONBLOCK when opening.
This commit is contained in:
parent
3036fef6a7
commit
05b6618ff3
|
@ -97,6 +97,8 @@ static struct serial *create_serial( const char *nameptr, size_t len, unsigned i
|
|||
default: break;
|
||||
}
|
||||
|
||||
flags |= O_NONBLOCK;
|
||||
|
||||
fd = open( name, flags );
|
||||
free( name );
|
||||
if (fd < 0)
|
||||
|
|
Loading…
Reference in New Issue