Sync OpenBSD patchset 246:

Have the client pass its stdin fd to the server when identifying itself and
have the server use that rather than reopening the tty. If the fd isn't given,
use the old behaviour (so no need for a version change).

This allows tmux to be used as the shell, so also change so that when working
out the command to execute if default-command is empty (the default), tmux will
try not execute itself.

5 files changed
tree: a15c5d4ff41e637982452222ede90d433dbc10a6
  1. CHANGES
  2. FAQ
  3. GNUmakefile
  4. Makefile
  5. NOTES
  6. TODO
  7. array.h
  8. attributes.c
  9. buffer-poll.c
  10. buffer.c
  11. cfg.c
  12. client-fn.c
  13. client.c
  14. clock.c
  15. cmd-attach-session.c
  16. cmd-bind-key.c
  17. cmd-break-pane.c
  18. cmd-choose-session.c
  19. cmd-choose-window.c
  20. cmd-clear-history.c
  21. cmd-clock-mode.c
  22. cmd-command-prompt.c
  23. cmd-confirm-before.c
  24. cmd-copy-buffer.c
  25. cmd-copy-mode.c
  26. cmd-delete-buffer.c
  27. cmd-detach-client.c
  28. cmd-display-message.c
  29. cmd-down-pane.c
  30. cmd-find-window.c
  31. cmd-generic.c
  32. cmd-has-session.c
  33. cmd-if-shell.c
  34. cmd-kill-pane.c
  35. cmd-kill-server.c
  36. cmd-kill-session.c
  37. cmd-kill-window.c
  38. cmd-last-window.c
  39. cmd-link-window.c
  40. cmd-list-buffers.c
  41. cmd-list-clients.c
  42. cmd-list-commands.c
  43. cmd-list-keys.c
  44. cmd-list-sessions.c
  45. cmd-list-windows.c
  46. cmd-list.c
  47. cmd-load-buffer.c
  48. cmd-lock-server.c
  49. cmd-move-window.c
  50. cmd-new-session.c
  51. cmd-new-window.c
  52. cmd-next-layout.c
  53. cmd-next-window.c
  54. cmd-paste-buffer.c
  55. cmd-previous-layout.c
  56. cmd-previous-window.c
  57. cmd-refresh-client.c
  58. cmd-rename-session.c
  59. cmd-rename-window.c
  60. cmd-resize-pane.c
  61. cmd-respawn-window.c
  62. cmd-rotate-window.c
  63. cmd-save-buffer.c
  64. cmd-scroll-mode.c
  65. cmd-select-layout.c
  66. cmd-select-pane.c
  67. cmd-select-prompt.c
  68. cmd-select-window.c
  69. cmd-send-keys.c
  70. cmd-send-prefix.c
  71. cmd-server-info.c
  72. cmd-set-buffer.c
  73. cmd-set-environment.c
  74. cmd-set-option.c
  75. cmd-set-password.c
  76. cmd-set-window-option.c
  77. cmd-show-buffer.c
  78. cmd-show-environment.c
  79. cmd-show-options.c
  80. cmd-show-window-options.c
  81. cmd-source-file.c
  82. cmd-split-window.c
  83. cmd-start-server.c
  84. cmd-string.c
  85. cmd-suspend-client.c
  86. cmd-swap-pane.c
  87. cmd-swap-window.c
  88. cmd-switch-client.c
  89. cmd-unbind-key.c
  90. cmd-unlink-window.c
  91. cmd-up-pane.c
  92. cmd.c
  93. colour.c
  94. compat.h
  95. compat/
  96. configure
  97. environ.c
  98. examples/
  99. grid-view.c
  100. grid.c
  101. input-keys.c
  102. input.c
  103. key-bindings.c
  104. key-string.c
  105. layout-set.c
  106. layout.c
  107. log.c
  108. mode-key.c
  109. names.c
  110. options-cmd.c
  111. options.c
  112. osdep-darwin.c
  113. osdep-freebsd.c
  114. osdep-linux.c
  115. osdep-netbsd.c
  116. osdep-openbsd.c
  117. osdep-unknown.c
  118. paste.c
  119. resize.c
  120. screen-redraw.c
  121. screen-write.c
  122. screen.c
  123. server-fn.c
  124. server-msg.c
  125. server.c
  126. session.c
  127. status.c
  128. tmux.1
  129. tmux.c
  130. tmux.h
  131. tools/
  132. tty-keys.c
  133. tty-term.c
  134. tty.c
  135. utf8.c
  136. window-choose.c
  137. window-clock.c
  138. window-copy.c
  139. window-more.c
  140. window-scroll.c
  141. window.c
  142. www/
  143. xmalloc.c