| Age | Commit message (Collapse) | Author |
|
dtach was assuming that writes with a small byte count could never fail,
and was not handling partial writes for larger byte counts in a few
places.
This should also suppress unused result warnings from gcc on systems
that define _FORTIFY_SOURCE by default.
|
|
Also change the execvp error exit from 127 to 1 to be consistent between
dtach -n and dtach -N.
|
|
gcc now warns that sig is an unused parameter:
attach.c: In function 'win_change':
attach.c:99:16: warning: unused parameter 'sig' [-Wunused-parameter]
99 | win_change(int sig)
| ~~~~^~~
|
|
Use http://www.gnu.org/licenses/ instead of a postal address as
suggested in PR #7.
|
|
|
|
|
|
dtach -p copies the contents of standard input to a session.
Based on an initial patch by @johnlane.
|
|
dtach -N is similar to dtach -n, except dtach will not daemonize.
Based on patches by Ciprian Dorin Craciun and Frank Hunleth.
|
|
|
|
paranoid about this, and only remove the specified file if connect says
the connection was refused and stat says the file is a socket.
Also dtach -A now only tries to create the socket if the connection was
refused or the socket did not exist, instead of on any random error as
before.
|
|
exiting silently.
Also make sure the master process waits until the client attaches when using
the -A and -c modes, so that the error message has a chance of being seen.
|
|
present when dtach is started, we now rely on whatever default terminal
settings the kernel uses.
|
|
character method again.
|
|
|