mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 15:48:06 -05:00
Add missing #ifndef OMIT_UTMP over pty_utmp_helper_pipe closing
This commit is contained in:
parent
aaa1bfbb57
commit
a7c7ba0eb1
@ -887,10 +887,12 @@ Backend *pty_backend_create(
|
||||
/* If somehow we've got a pty master already and don't
|
||||
* need it, throw it away! */
|
||||
close(pty->master_fd);
|
||||
#ifndef OMIT_UTMP
|
||||
if (pty_utmp_helper_pipe >= 0) {
|
||||
close(pty_utmp_helper_pipe); /* don't need this either */
|
||||
pty_utmp_helper_pipe = -1;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user