Changeset 5428:e6f63ff541b0 in roaraudio


Ignore:
Timestamp:
03/20/12 12:44:03 (10 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fix support to connect to a pty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/basic.c

    r5406 r5428  
    235235    if ( S_ISCHR(sockstat.st_mode) ) { 
    236236#ifdef O_NOCTTY 
    237      return open(user_sock, O_RDWR|O_NOCTTY, 0666); 
     237     fh = open(user_sock, O_RDWR|O_NOCTTY, 0666); 
    238238#else 
    239      return open(user_sock, O_RDWR, 0666); 
     239     fh = open(user_sock, O_RDWR, 0666); 
    240240#endif 
    241241    } 
     
    243243  } 
    244244#endif 
    245   fh = roar_socket_connect(type, user_sock, ROAR_DEFAULT_PORT); 
     245  if ( fh == -1 ) 
     246   fh = roar_socket_connect(type, user_sock, ROAR_DEFAULT_PORT); 
    246247 } 
    247248 
Note: See TracChangeset for help on using the changeset viewer.