Unconditionally set O_NONBLOCK when opening.

This commit is contained in:
Mike McCormack 2001-08-21 17:01:48 +00:00 committed by Alexandre Julliard
parent 3036fef6a7
commit 05b6618ff3
1 changed files with 2 additions and 0 deletions

View File

@ -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)