Sync OpenBSD patchset 680:

Remove XXX comment and just close received fd if calloc() fails.

If this happens the imsg may no longer be usable as there may be queued
messages, but this is a) already the case with the code now, and b)
would be the case if recvmsg() fails anyway, so we can document that -1
from imsg_read() invalidates the struct imsgbuf.

discussed with and ok eric

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