Commit Graph

97 Commits

Author SHA1 Message Date
Marc André Tanner af531f98ae Set version to 0.3 2015-02-19 17:49:02 +01:00
Marc André Tanner ad05af340a Change some year numbers to 2015 2015-02-19 17:46:05 +01:00
Marc André Tanner 81d934ea78 Makefile: do not append to $SRC instead set it 2015-02-19 09:42:10 +01:00
Marc André Tanner 64920e5977 Simplify maximum socket name length check 2015-02-17 22:49:14 +01:00
Marc André Tanner 98ac772a97 Set packet length to zero on error case 2015-02-17 22:49:14 +01:00
Marc André Tanner f02c3fc3c0 Fix validation creteria 2015-02-17 00:34:44 +01:00
Marc André Tanner bd3dcba548 Validate packet size before sending/receiving 2015-02-17 00:20:38 +01:00
Marc André Tanner eef3b654d9 More error handling fixes 2015-02-17 00:02:06 +01:00
Marc André Tanner e4a6b01fdc Make error handling more robust 2015-02-16 23:40:25 +01:00
Marc André Tanner d1a44a9c1a Check return value of open(2) #30720 2015-02-16 22:54:32 +01:00
Marc André Tanner bb7c859b5f Also NUL terminate string in error case #30714 2015-02-16 22:44:29 +01:00
Marc André Tanner 5c7f933dcc Fix file descriptor leakage #30724 2015-02-16 22:42:01 +01:00
Marc André Tanner 678c509f3d Revert "travis: try to run clang analyzer upon build time"
This reverts commit 4fa38bb62e.

Apparently scan-build isn't installed by default, therefore
something like the following would be needed:

 sudo add-apt-repository "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main"
 sudo add-apt-repository "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-${CLANG_VERSION} main"
 wget -q -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
 sudo apt-get update -qq
 sudo apt-get install -y -q clang-${CLANG_VERSION}
2015-02-16 22:13:00 +01:00
Marc André Tanner 4fa38bb62e travis: try to run clang analyzer upon build time 2015-02-15 10:30:04 +01:00
Marc André Tanner fd26003cce Cleanup config.mk, introduce $CPPFLAGS
$CPPFLAGS does only contain feature test macro defines, thus one
system which need different ones compilation should succeed with
something like:

 make CPPFLAGS= LIBS=-lc
2015-02-15 10:20:12 +01:00
Marc André Tanner 9eeb18bbfb Travis CI config 2015-02-14 10:22:28 +01:00
Marc André Tanner 8c9d2a1c46 Update testsuite to reflect terminal restoring changes 2014-12-22 13:32:42 +01:00
Marc André Tanner 76bae5939f Improve terminal restoring
Instead of simply moving the cursor to the bottom of the screen
use the alternate screen buffer i.e. the smcup/rmcup capabilities.

This is currently hardcoded to the xterm originated \e[?1047{h,l}
sequence. I also patched dvtm to support these.
2014-12-22 13:32:42 +01:00
David 16d76139db Slight formatting change 2014-12-22 13:32:42 +01:00
David 1946d8387a Added -C option
for collection of exit status and creation of new session in one go
2014-12-22 13:32:42 +01:00
Marc André Tanner 0a94807d60 Better error message in case session name is too long 2014-12-22 13:32:41 +01:00
Marc André Tanner 3cfa99a031 Decouple socket path lookup logic 2014-12-22 13:23:26 +01:00
Jason Swank d4a74a23d7 Allows abduco to compile on DragonFly BSD 2014-12-09 19:46:46 +01:00
Marc André Tanner 28ef145e40 Set version to 0.2 2014-11-15 14:54:01 +01:00
Marc André Tanner 27744da967 Add quick starting section to the README 2014-11-15 14:14:25 +01:00
Brandon Mulcahy 5ac6537927 Use more descriptive execvp error message 2014-11-10 13:48:52 +01:00
Marc André Tanner 03499b3279 Respect globally set $PREFIX 2014-10-29 21:38:11 +01:00
Marc André Tanner 2de1946f1a Use pselect instead of select
For the server case I see no such race condition.
2014-10-16 21:41:17 +02:00
Marc André Tanner eabb140a38 Use _POSIX_C_SOURCE and _XOPEN_SOURCE instead of _GNU_SOURCE 2014-10-16 21:24:51 +02:00
Marc André Tanner 5b503c838f Set _GNU_SOURCE in config.mk 2014-10-16 21:20:02 +02:00
Marc André Tanner 35117affb9 Correct function definitions without parameters 2014-10-10 20:43:06 +02:00
Marc André Tanner 94051967ff Make strip utility configurable 2014-10-05 08:38:02 +02:00
Marc André Tanner 21f81b81b0 Make setsid(2) failure non fatal
The specified error EPERM can only occur if the process is already
a session leader in which case we do not care.
2014-10-02 14:21:19 +02:00
Ross Mohn 9e6490da33 AIX support 2014-09-26 21:07:32 +02:00
Marc André Tanner ef36456177 Do not display hostname suffix in session listing
Trying to attach to an existing session with its hostname does not
work, therefore avoid confusion and do not display it.
2014-09-08 21:03:10 +02:00
Marc André Tanner b2f2dc810d Suffix session names with '@hostname' 2014-09-08 19:39:46 +02:00
Evan Hanson 450062468c Add whatis entry to man page 2014-07-20 09:54:32 +02:00
Marc André Tanner b722e48f55 Simplify Solaris detection 2014-07-08 23:00:39 +02:00
Bergman Andrey 8c81939b9d Fallback to TTYNAME_MAX if TTY_NAME_MAX is not defined 2014-07-08 10:22:42 +02:00
Bergman Andrey 4ae63d86d6 Add library hint for Solaris to config.mk 2014-07-07 22:50:15 +02:00
Marc André Tanner 119d7c8bca Add Solaris support 2014-07-07 22:46:14 +02:00
Marc André Tanner 6df4421e6c Fix AIX support 2014-07-07 22:33:05 +02:00
Marc André Tanner d23c9982c7 Avoid usage of non-ISO-standard escape sequences 2014-07-07 20:20:46 +02:00
Marc André Tanner 433de0e9ca Add testsuite.sh to source tarball 2014-07-05 09:38:25 +02:00
Marc André Tanner 7b95d5b65e Only list sockets in session list 2014-06-30 15:02:00 +02:00
Marc André Tanner b8b76171e8 Tweak manual page 2014-06-30 15:01:39 +02:00
Marc André Tanner 5d3a53e49a Set detach key explicitly in testsuite.sh 2014-06-25 09:59:21 +02:00
Marc André Tanner 3b701e2432 Use correct printf format specifier for size_t 2014-06-24 11:56:12 +02:00
Marc André Tanner 4b4c08457f Make client termination more robust by explicitly sending exit messages 2014-06-24 10:55:44 +02:00
Marc André Tanner 9e29a968d8 Fix race condition on command execution
There are now two different pipes used for synchronization purposes.
2014-06-24 10:50:10 +02:00