OpenBSD CVS

CVS log for src/usr.bin/tmux/proc.c


[BACK] Up to [local] / src / usr.bin / tmux

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 13 08:10:23 2024 UTC (3 months, 2 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

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.

Revision 1.23 / (download) - annotate - [selected], Tue Jan 16 13:09:11 2024 UTC (4 months, 2 weeks ago) by claudio
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)

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@

Revision 1.22 / (download) - annotate - [select for diffs], Mon May 30 12:48:57 2022 UTC (2 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.21: +7 -1 lines
Diff to previous 1.21 (colored) to selected 1.23 (colored)

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.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Mar 8 11:28:40 2022 UTC (2 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.20: +12 -1 lines
Diff to previous 1.20 (colored) to selected 1.23 (colored)

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

Revision 1.20 / (download) - annotate - [select for diffs], Thu Feb 11 09:39:29 2021 UTC (3 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.19: +37 -1 lines
Diff to previous 1.19 (colored) to selected 1.23 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Mon Oct 26 19:00:37 2020 UTC (3 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored) to selected 1.23 (colored)

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

Revision 1.18 / (download) - annotate - [select for diffs], Tue Aug 4 08:50:01 2020 UTC (3 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored) to selected 1.23 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Sat May 16 16:07:55 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.16: +8 -3 lines
Diff to previous 1.16 (colored) to selected 1.23 (colored)

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.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jan 28 10:44:30 2020 UTC (4 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.23 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 14 18:49:07 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.14: +12 -2 lines
Diff to previous 1.14 (colored) to selected 1.23 (colored)

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).

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 14 08:04:23 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.13: +8 -8 lines
Diff to previous 1.13 (colored) to selected 1.23 (colored)

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.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jul 12 12:35:31 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.12: +1 -3 lines
Diff to previous 1.12 (colored) to selected 1.23 (colored)

Do not need to set up USR2 twice.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jul 12 09:24:17 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.11: +68 -23 lines
Diff to previous 1.11 (colored) to selected 1.23 (colored)

Move signal code into proc.c.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 12 09:07:52 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.10: +1 -7 lines
Diff to previous 1.10 (colored) to selected 1.23 (colored)

proc_send_s now seems unnecessary.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 7 15:27:46 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.23 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jun 4 08:25:57 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.8: +7 -1 lines
Diff to previous 1.8 (colored) to selected 1.23 (colored)

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.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 19 15:59:12 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.23 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Dec 5 13:18:24 2015 UTC (8 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored) to selected 1.23 (colored)

EAGAIN handling for imsg_read. OK henning@ benno@

Revision 1.6 / (download) - annotate - [select for diffs], Tue Nov 24 21:32:36 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.5: +8 -1 lines
Diff to previous 1.5 (colored) to selected 1.23 (colored)

Log some system and libevent information at startup.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 24 21:19:46 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.23 (colored)

Make the log stuff a bit tidier with some helper functions.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Nov 18 14:27:44 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.23 (colored)

Use __unused rather than rolling our own.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 31 13:43:38 2015 UTC (8 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored) to selected 1.23 (colored)

Don't shift version out of peerid, it is needed later.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 29 09:35:31 2015 UTC (8 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.1: +22 -11 lines
Diff to previous 1.1 (colored) to selected 1.23 (colored)

Break version check into a separate function, and limit version to 8 bits.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Oct 27 13:23:24 2015 UTC (8 years, 7 months ago) by nicm
Branch: MAIN
Diff to selected 1.23 (colored)

Break the common process set up, event loop and imsg dispatch code
between server and client out into a separate internal API. This will
make it easier to add another process.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.