David Mandelberg 42d7b29a7c Fix read of uninitialized memory for non-PTY jobs
Before this change, this command:

```
valgrind --log-file=valgrind.log tmux -f /dev/null start-server \; run true \; kill-server
```

Gave these errors:

```
==3477== Conditional jump or move depends on uninitialised value(s)
==3477==    at 0x484E5BE: strlcpy (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==3477==    by 0x167D28: job_run (job.c:193)
==3477==    by 0x14002D: cmd_run_shell_timer (cmd-run-shell.c:196)
==3477==    by 0x48B724D: ??? (in /usr/lib/x86_64-linux-gnu/libevent_core-2.1.so.7.0.1)
==3477==    by 0x48B793E: event_base_loop (in /usr/lib/x86_64-linux-gnu/libevent_core-2.1.so.7.0.1)
==3477==    by 0x17A766: proc_loop (proc.c:213)
==3477==    by 0x18EEF3: server_start (server.c:253)
==3477==    by 0x12D872: client_connect (client.c:164)
==3477==    by 0x12D872: client_main (client.c:295)
==3477==    by 0x128307: main (tmux.c:537)
==3477==
==3477== Conditional jump or move depends on uninitialised value(s)
==3477==    at 0x484E677: strlcpy (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==3477==    by 0x167D28: job_run (job.c:193)
==3477==    by 0x14002D: cmd_run_shell_timer (cmd-run-shell.c:196)
==3477==    by 0x48B724D: ??? (in /usr/lib/x86_64-linux-gnu/libevent_core-2.1.so.7.0.1)
==3477==    by 0x48B793E: event_base_loop (in /usr/lib/x86_64-linux-gnu/libevent_core-2.1.so.7.0.1)
==3477==    by 0x17A766: proc_loop (proc.c:213)
==3477==    by 0x18EEF3: server_start (server.c:253)
==3477==    by 0x12D872: client_connect (client.c:164)
==3477==    by 0x12D872: client_main (client.c:295)
==3477==    by 0x128307: main (tmux.c:537)
```

Addresses #4421
2025-03-27 19:20:23 -04:00
2025-02-26 10:01:14 +00:00
2025-03-04 10:01:15 +00:00
2025-03-24 22:01:11 +00:00
2025-03-24 22:01:11 +00:00
2025-03-04 10:01:15 +00:00
2025-03-04 10:01:15 +00:00
2025-03-24 22:01:11 +00:00
2025-02-26 10:01:14 +00:00
2025-03-24 22:01:11 +00:00
2025-03-04 10:01:15 +00:00
2025-03-24 22:01:11 +00:00
2025-03-24 22:01:11 +00:00
2025-03-04 10:01:15 +00:00
2025-03-21 16:01:11 +00:00
2025-03-24 22:01:11 +00:00
2025-03-11 10:01:12 +00:00

Welcome to tmux!

tmux is a terminal multiplexer: it enables a number of terminals to be created,
accessed, and controlled from a single screen. tmux may be detached from a
screen and continue running in the background, then later reattached.

This release runs on OpenBSD, FreeBSD, NetBSD, Linux, macOS and Solaris.

* Dependencies

tmux depends on libevent 2.x, available from:

	https://github.com/libevent/libevent/releases/latest

It also depends on ncurses, available from:

	https://invisible-mirror.net/archives/ncurses/

To build tmux, a C compiler (for example gcc or clang), make, pkg-config and a
suitable yacc (yacc or bison) are needed.

* Installation

To build and install tmux from a release tarball, use:

	$ ./configure && make
	$ sudo make install

tmux can use the utempter library to update utmp(5), if it is installed - run
configure with --enable-utempter to enable this.

To get and build the latest from version control - note that this requires
autoconf, automake and pkg-config:

	$ git clone https://github.com/tmux/tmux.git
	$ cd tmux
	$ sh autogen.sh
	$ ./configure && make
	$ sudo make install

* Contributing

Bug reports, feature suggestions and especially code contributions are most
welcome. Please send by email to:

	tmux-users@googlegroups.com

Or open a GitHub issue or pull request.

* Documentation

For documentation on using tmux, see the tmux.1 manpage. View it from the
source tree with:

	$ nroff -mdoc tmux.1|less

A small example configuration is in example_tmux.conf.

Other documentation is available in the wiki:

	https://github.com/tmux/tmux/wiki

Also see the tmux FAQ at:

	https://github.com/tmux/tmux/wiki/FAQ

A bash(1) completion file is at:

	https://github.com/imomaliev/tmux-bash-completion

For debugging, run tmux with -v and -vv to generate server and client log files
in the current directory.

* Support

The tmux mailing list for general discussion and bug reports is:

	https://groups.google.com/forum/#!forum/tmux-users

Subscribe by sending an email to:

	tmux-users+subscribe@googlegroups.com

* License

This file and the CHANGES files are licensed under the ISC license. All other
files have a license and copyright notice at their start.
Description
No description provided
Readme 74 MiB
Languages
C 87.5%
Roff 7.1%
Shell 2.7%
Yacc 1.3%
M4 0.8%
Other 0.5%