diff options
author | Kevin Steves <stevesk@pobox.com> | 2001-08-14 20:41:34 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2001-08-14 20:41:34 +0000 |
commit | 25ee4e48f79681ce76122d2b4ddda46efcd37ca0 (patch) | |
tree | 94b77241693a4d74c5d1a3a8e431baae1586ee5a /sshpty.c | |
parent | ad4aa5655dd67823af9b751d173e7ce166454770 (diff) |
- (stevesk) sshpty.c: return 0 on error in cray pty code;
ok wendyp@cray.com
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -186,6 +186,7 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) | |||
186 | if (*ttyfd < 0) { | 186 | if (*ttyfd < 0) { |
187 | error("%.100s: %.100s", namebuf, strerror(errno)); | 187 | error("%.100s: %.100s", namebuf, strerror(errno)); |
188 | close(*ptyfd); | 188 | close(*ptyfd); |
189 | return 0; | ||
189 | } | 190 | } |
190 | return 1; | 191 | return 1; |
191 | } | 192 | } |