diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-26 22:57:20 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-26 22:57:20 +0000 |
commit | 9cde0c24779e8f43b6d122bc62fa22b6022d9ef0 (patch) | |
tree | 833af8a6751da50421ae9db66ae10e2e6a05823c /window.c | |
parent | 4d7e555a48a6fb0732565b24482d24e968f49eae (diff) | |
download | rtmux-9cde0c24779e8f43b6d122bc62fa22b6022d9ef0.tar.gz rtmux-9cde0c24779e8f43b6d122bc62fa22b6022d9ef0.tar.bz2 rtmux-9cde0c24779e8f43b6d122bc62fa22b6022d9ef0.zip |
Be more clever about picking window name.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.62 2009-01-23 16:59:14 nicm Exp $ */ +/* $Id: window.c,v 1.63 2009-01-26 22:57:20 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -569,7 +569,7 @@ window_pane_spawn(struct window_pane *wp, tv.tv_usec = NAME_INTERVAL * 1000L; timeradd(&wp->window->name_timer, &tv, &wp->window->name_timer); - switch (forkpty(&wp->fd, NULL, NULL, &ws)) { + switch (forkpty(&wp->fd, wp->tty, NULL, &ws)) { case -1: wp->fd = -1; xasprintf(cause, "%s: %s", cmd, strerror(errno)); |