diff options
| author | 2020-03-19 13:43:18 +0000 | |
|---|---|---|
| committer | 2020-03-19 13:43:18 +0000 | |
| commit | a6396ca2109ffade1059ac1e2c36239f4e588edc (patch) | |
| tree | af83ae5d23b3e7f8c4d4d398b8f72f10e340a189 /usr.bin/tmux/cmd-if-shell.c | |
| parent | Add C position for terminal centre with display-menu -x and -y. (diff) | |
| download | wireguard-openbsd-a6396ca2109ffade1059ac1e2c36239f4e588edc.tar.xz wireguard-openbsd-a6396ca2109ffade1059ac1e2c36239f4e588edc.zip | |
Add a flag to run a background process in a pty as well, not used for
anything yet.
Diffstat (limited to 'usr.bin/tmux/cmd-if-shell.c')
| -rw-r--r-- | usr.bin/tmux/cmd-if-shell.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-if-shell.c b/usr.bin/tmux/cmd-if-shell.c index e021ba6d35e..fc551fbeb94 100644 --- a/usr.bin/tmux/cmd-if-shell.c +++ b/usr.bin/tmux/cmd-if-shell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-if-shell.c,v 1.65 2019/07/17 17:49:23 nicm Exp $ */ +/* $OpenBSD: cmd-if-shell.c,v 1.66 2020/03/19 13:43:18 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -144,7 +144,8 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item) cmd_find_copy_state(&cdata->input.fs, fs); if (job_run(shellcmd, s, server_client_get_cwd(item->client, s), NULL, - cmd_if_shell_callback, cmd_if_shell_free, cdata, 0) == NULL) { + cmd_if_shell_callback, cmd_if_shell_free, cdata, 0, -1, + -1) == NULL) { cmdq_error(item, "failed to run command: %s", shellcmd); free(shellcmd); free(cdata); |
