diff options
Diffstat (limited to 'src/s/sol2-3.h')
| -rw-r--r-- | src/s/sol2-3.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/s/sol2-3.h b/src/s/sol2-3.h index 9d9018aa0be..a4fc6097905 100644 --- a/src/s/sol2-3.h +++ b/src/s/sol2-3.h | |||
| @@ -39,12 +39,12 @@ | |||
| 39 | \ | 39 | \ |
| 40 | sigblock (sigmask (SIGCLD)); \ | 40 | sigblock (sigmask (SIGCLD)); \ |
| 41 | if (grantpt (fd) == -1) \ | 41 | if (grantpt (fd) == -1) \ |
| 42 | { close (fd); return -1; } \ | 42 | { emacs_close (fd); return -1; } \ |
| 43 | sigunblock (sigmask (SIGCLD)); \ | 43 | sigunblock (sigmask (SIGCLD)); \ |
| 44 | if (unlockpt (fd) == -1) \ | 44 | if (unlockpt (fd) == -1) \ |
| 45 | { close (fd); return -1; } \ | 45 | { emacs_close (fd); return -1; } \ |
| 46 | if (!(ptyname = ptsname (fd))) \ | 46 | if (!(ptyname = ptsname (fd))) \ |
| 47 | { close (fd); return -1; } \ | 47 | { emacs_close (fd); return -1; } \ |
| 48 | strncpy (pty_name, ptyname, sizeof (pty_name)); \ | 48 | strncpy (pty_name, ptyname, sizeof (pty_name)); \ |
| 49 | pty_name[sizeof (pty_name) - 1] = 0; \ | 49 | pty_name[sizeof (pty_name) - 1] = 0; \ |
| 50 | } | 50 | } |