mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 22:43:58 +00:00
Don't close random file descriptor on error, from J Raynor.
This commit is contained in:
@ -29,7 +29,7 @@
|
|||||||
pid_t
|
pid_t
|
||||||
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
|
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
|
||||||
{
|
{
|
||||||
int slave;
|
int slave = -1;
|
||||||
char *path;
|
char *path;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
pid_t
|
pid_t
|
||||||
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
|
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
|
||||||
{
|
{
|
||||||
int slave;
|
int slave = -1;
|
||||||
char *path;
|
char *path;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user