summaryrefslogtreecommitdiff
path: root/dtach.h
AgeCommit message (Collapse)Author
2025-06-19Always check the return value of the write() system callNed T. Crigler
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.
2025-06-17Make dtach -N return the exit status of the programNed T. Crigler
Also change the execvp error exit from 127 to 1 to be consistent between dtach -n and dtach -N.
2025-06-17Suppress unused parameter 'sig' warning from gccNed T. Crigler
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) | ~~~~^~~
2017-03-05Update license header in source files.Ned T. Crigler
Use http://www.gnu.org/licenses/ instead of a postal address as suggested in PR #7.
2016-05-08Update copyrights for 2016.Ned T. Crigler
2015-07-18Update copyrights for 2015.Ned T. Crigler
2015-07-18Add dtach -p.Ned T. Crigler
dtach -p copies the contents of standard input to a session. Based on an initial patch by @johnlane.
2014-08-04Add dtach -N.Ned T. Crigler
dtach -N is similar to dtach -n, except dtach will not daemonize. Based on patches by Ciprian Dorin Craciun and Frank Hunleth.
2008-01-29Update copyrights for 2008.Ned T. Crigler
2006-09-27Try to detect and remove stale sockets when dtach -A is used. BeNed T. Crigler
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.
2006-06-03Print an error message if we could not execute the desired command, instead ofNed T. Crigler
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.
2005-04-10Allow the dtach -n mode to be used without a terminal. If a terminal is notNed T. Crigler
present when dtach is started, we now rely on whatever default terminal settings the kernel uses.
2004-06-24Allow the redraw method to be chosen by the user, and include the old Ctrl LNed T. Crigler
character method again.
2004-05-26dtach 0.6Ned T. Crigler