1
0
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:
Pavel I. Kryukov 2018-10-21 14:57:16 +03:00 committed by Simon Tatham
parent aaa1bfbb57
commit a7c7ba0eb1

View File

@ -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
}