Skip to content

Commit

Permalink
Use cfsetspeed instead of termios->c_ispeed/c_ospeed
Browse files Browse the repository at this point in the history
cfsetspeed seems more generally available as the older one isn't available
on Alpine Linux.

Fixes microsoft#40
  • Loading branch information
Tyriar committed Feb 23, 2017
1 parent 45779d5 commit e48ebcb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/unix/pty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ NAN_METHOD(PtyFork) {
term->c_cc[VSTATUS] = 20;
#endif

term->c_ispeed = B38400;
term->c_ospeed = B38400;
cfsetspeed(term, B38400);

// uid / gid
int uid = info[6]->IntegerValue();
Expand Down

0 comments on commit e48ebcb

Please sign in to comment.