Don't close random file descriptor on error, from J Raynor.

pull/1/head
Nicholas Marriott 2014-09-25 10:53:29 +01:00
parent 16670410ca
commit 5e7f1b9f0a
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
pid_t
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
{
int slave;
int slave = -1;
char *path;
pid_t pid;

View File

@ -30,7 +30,7 @@
pid_t
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
{
int slave;
int slave = -1;
char *path;
pid_t pid;