summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-04-20 17:49:26 +0000
committernicm <nicm@openbsd.org>2017-04-20 17:49:26 +0000
commit59538115fa28a5d3e0daaaa722a2530a34e9d39c (patch)
tree957ae4b5ff6b602c03d1a0023a4c23f627eb062b /usr.bin/tmux/window.c
parentAdd getptmfd(), fdopenpty(), fdforkpty() functions. These allow programs (diff)
downloadwireguard-openbsd-59538115fa28a5d3e0daaaa722a2530a34e9d39c.tar.xz
wireguard-openbsd-59538115fa28a5d3e0daaaa722a2530a34e9d39c.zip
Use fdforkpty() instead of our own unwrapped versions.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 5ec2613f67e..314e3365b26 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.189 2017/04/20 09:43:45 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.190 2017/04/20 17:49:26 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -883,7 +883,7 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
ws.ws_col = screen_size_x(&wp->base);
ws.ws_row = screen_size_y(&wp->base);
- wp->pid = pty_fork(ptm_fd, &wp->fd, wp->tty, sizeof wp->tty, &ws);
+ wp->pid = fdforkpty(ptm_fd, &wp->fd, wp->tty, NULL, &ws);
switch (wp->pid) {
case -1:
wp->fd = -1;