mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Open /dev/ptm before pledge() and save it to be used for PTMGET later
(this means inlining forkpty()). ok deraadt
This commit is contained in:
2
client.c
2
client.c
@ -303,6 +303,8 @@ client_main(struct event_base *base, int argc, char **argv, int flags,
|
||||
fatal("pledge failed");
|
||||
|
||||
/* Free stuff that is not used in the client. */
|
||||
if (ptm_fd != -1)
|
||||
close(ptm_fd);
|
||||
options_free(global_options);
|
||||
options_free(global_s_options);
|
||||
options_free(global_w_options);
|
||||
|
Reference in New Issue
Block a user