commit | 1063e5d0e4abda89934b664a71737a32e278b4e3 | [log] [download] |
---|---|---|
author | Tiago Cunha <tcunha@gmx.com> | Fri Aug 14 21:26:07 2009 +0000 |
committer | Tiago Cunha <tcunha@gmx.com> | Fri Aug 14 21:26:07 2009 +0000 |
tree | 2d2910e8aa219b834127e875faa52291fc42ce72 | |
parent | 7f77c395e38b35efa757f83037a051fea0fcd27d [diff] |
Sync OpenBSD patchset 248: imsg closes the fd after sending, so dup() STDIN_FILENO before passing it to the parent, otherwise TIOCGWINSZ will fail when the window is resized (that could actually be moved into the server but this is more future-proof and avoids breaking the protocol).