History log of /openbsd-src/usr.bin/tmux/proc.c (Results 1 – 25 of 30)
Revision Date Author Comments
# 0e59d0d1 21-Nov-2024 claudio <claudio@openbsd.org>

Convert sbin and usr.bin to check for imsgbuf_init failure and add
imsgbuf_allow_fdpass where needed.

OK tb@


# 668e5ba9 21-Nov-2024 claudio <claudio@openbsd.org>

Convert the common imsgbuf_read calls to the post EAGAIN world.

OK tb@


# 31be28ca 21-Nov-2024 claudio <claudio@openbsd.org>

Use imsgbuf_queuelen() instead of accessing the w.queue member.

OK tb@


# dd7efffe 21-Nov-2024 claudio <claudio@openbsd.org>

Rename imsg_init, imsg_clear, imsg_read, imsg_write and imsg_flush to
imsgbuf_init, imsgbuf_clear, imsgbuf_read, imsgbuf_write and imsgbuf_flush.

This separates the imsgbuf API from the per-imsg API

Rename imsg_init, imsg_clear, imsg_read, imsg_write and imsg_flush to
imsgbuf_init, imsgbuf_clear, imsgbuf_read, imsgbuf_write and imsgbuf_flush.

This separates the imsgbuf API from the per-imsg API.

OK tb@

show more ...


# 2ea38b85 21-Nov-2024 claudio <claudio@openbsd.org>

Convert imsg_write() callers to the new simplified return logic.

OK tb@


# ce33693d 21-Nov-2024 claudio <claudio@openbsd.org>

Introduce imsg_write() and use it instead of msgbuf_write().

imsg_write() is just a thin wrapper around msgbuf_write(). So this is
mostly search and replace.

OK tb@


# 9461a728 13-Feb-2024 nicm <nicm@openbsd.org>

Add two new values for the destroy-unattached option to destroy sessions
only if they are not members of sessions groups, from Mark Huang, GitHub
issue 3806.


# 8a53274a 16-Jan-2024 claudio <claudio@openbsd.org>

Use imsg_get_fd() instead of direct access to imsg.fd

The change in proc.c can be further simplified once imsg_free() takes
care of unclaimed file descriptors.

OK nicm@


# 8ab000fc 30-May-2022 nicm <nicm@openbsd.org>

Add an ACL list for users connecting to the tmux socket. Users may be
forbidden from attaching, forced to attach read-only, or allowed to
attach read-write. A new command, server-access, configures t

Add an ACL list for users connecting to the tmux socket. Users may be
forbidden from attaching, forced to attach read-only, or allowed to
attach read-write. A new command, server-access, configures the list.
tmux gets the user using getpeereid(3) of the client socket. Users must
still configure file system permissions manually. From Dallas Lyons and
others.

show more ...


# 1c49b573 08-Mar-2022 nicm <nicm@openbsd.org>

Add formats for client and server UID and user (for multiuser setups).


# ab26eabf 11-Feb-2021 nicm <nicm@openbsd.org>

Add a couple of helper functions, and flush imsgs on exit.


# b1f23571 26-Oct-2020 nicm <nicm@openbsd.org>

SIGQUIT handler needs to be cleared before fork like the others,
reported by Simon Andersson.


# eb5d7a07 04-Aug-2020 nicm <nicm@openbsd.org>

Also ignore SIGQUIT so it can't be used to kill the client when locked.


# 9e0637ea 16-May-2020 nicm <nicm@openbsd.org>

Add a -D flag to ask tmux not to daemonize, useful both for running a
debugger (lldb does not have follow-fork-mode) and for running with a
managed supervisor init system. GitHub issue 2190.


# 55bde146 28-Jan-2020 nicm <nicm@openbsd.org>

Reduce a difference with portable tmux by adding the -V flag and
#{version} format; on OpenBSD these just report the OpenBSD version.


# 89b52a5b 14-Jul-2017 nicm <nicm@openbsd.org>

Because ignore SIGCHLD early, letting signal_del restore it doesn't work
correctly, so set it explicitly back to default (and the others for good
measure).


# 3b700139 14-Jul-2017 nicm <nicm@openbsd.org>

Fix redraw defer code in the presence of multiple clients - the timer
may be needed for all of them, so don't delete it on the first; and
don't skip setting the redraw flag if the timer is already ru

Fix redraw defer code in the presence of multiple clients - the timer
may be needed for all of them, so don't delete it on the first; and
don't skip setting the redraw flag if the timer is already running.

Reported by Pol Van Aubel in GitHub issue 1003.

show more ...


# f2edf49d 12-Jul-2017 nicm <nicm@openbsd.org>

Do not need to set up USR2 twice.


# c37a9299 12-Jul-2017 nicm <nicm@openbsd.org>

Move signal code into proc.c.


# f7772d13 12-Jul-2017 nicm <nicm@openbsd.org>

proc_send_s now seems unnecessary.


# 0cf33a8d 07-Jun-2017 nicm <nicm@openbsd.org>

Return 1 if name matches not 0, also fix some spaces.


# 79c9b201 04-Jun-2017 nicm <nicm@openbsd.org>

Support SIGUSR2 to stop and start logging for an existing server. Also
we currently only have two log levels so just use -v and -vv rather than
-v and -vvvv, and clarify the man page entry for -v.


# 98ca8272 19-Jan-2016 nicm <nicm@openbsd.org>

I no longer use my SourceForge address so replace it.


# 55b9e333 05-Dec-2015 claudio <claudio@openbsd.org>

EAGAIN handling for imsg_read. OK henning@ benno@


# fca48d3e 24-Nov-2015 nicm <nicm@openbsd.org>

Log some system and libevent information at startup.


12