Marc André Tanner
2fc2671808
Add Github Action to periodically run Coverity Scan
2020-04-20 12:49:52 +02:00
Marc André Tanner
c31eb7fad9
Add fall through comment to silence compiler warning
2020-04-20 12:47:51 +02:00
Marc André Tanner
6ff68d3d5a
Explicitly wait for intermediate process
2020-04-20 11:51:56 +02:00
Marc André Tanner
62b6fce308
Tweak README
2020-04-19 13:08:07 +02:00
Marc André Tanner
042fa2255b
Add Sourcehub CI integration
2020-04-19 13:08:07 +02:00
Marc André Tanner
4a2c9ded43
Cleanup gitignore
2020-04-19 13:08:07 +02:00
Marc André Tanner
b47b66188f
Use awk instead of seq in test suite
2020-04-19 13:08:07 +02:00
Marc André Tanner
4742cdcfca
Set test suite exit status depending on test results
2020-04-19 13:08:07 +02:00
Marc André Tanner
58fee22707
Make test suite a bit more robust
2020-04-19 13:08:07 +02:00
Marc André Tanner
b2ada74d43
Manual page style fixes
2020-04-19 13:08:07 +02:00
Marc André Tanner
5bf6b3178b
Exit if changing to root directory fails
2020-04-19 13:00:33 +02:00
Marc André Tanner
32a839d76a
Do not install zsh completion by default
...
Provide dedicated install-completion Makefile target instead.
2020-04-19 12:54:53 +02:00
Marc André Tanner
cef844ec9d
Move zsh completion to contrib folder
2020-04-19 12:54:21 +02:00
Marc André Tanner
7d0e9d91b6
Create leading directories when installing
...
Note: install(1) is not really specified and the -D option does not
seem to be portable. For example the FreeBSD manual page documents a
different behavior.
We therefore use a somewhat ugly two step process with an installdirs
target.
2020-04-19 12:43:59 +02:00
Marc André Tanner
070e34b502
Use strip explicitly instead of install -s
...
Some install(1) implementations don't support -s or treat it as a NOP.
2020-04-19 12:43:59 +02:00
zsugabubus
fcac3b17ed
Add Zsh completion
2020-02-05 10:39:03 +01:00
zsugabubus
c3ea8f5bde
Makefile: use `install` instead of `cp`
2020-02-05 10:00:27 +01:00
Marc André Tanner
8f80aa8044
Do not implicilty enable passthrough mode if no session name is given
...
Even when no session name was provided the passthrough flag was still
implicitly enabled in case stdin was not a terminal. This behavior
prevented the session list from being printed i.e.
abduco < /dev/null
would not work as expected. Only enable implicit passthrough if stdin
is not a terminal *and* a session name is given.
Fix #34
2018-05-16 10:57:39 +02:00
Marc André Tanner
c33ee37b43
Expose current session socket as $ABDUCO_SOCKET
...
This is an absolute path to the Unix domain socket representing the
current session.
2018-05-15 17:10:18 +02:00
Marc André Tanner
4c3e2c8c70
Expose current session name as $ABDUCO_SESSION
...
The supervised command can use it to determine in which session it
is running. It is not necessarily identical to the file name of the
underlying socket as stored in the file system.
2018-05-15 17:08:44 +02:00
Marc André Tanner
0681dc8daf
Constify maximum socket name length
2018-05-15 13:57:27 +02:00
Marc André Tanner
35b3f61015
Expand build matrix on Travis CI
2018-03-19 19:03:50 +01:00
Marc André Tanner
5eb7317971
Convert manual page to mdoc(7) format, restructure content
2018-03-18 15:06:37 +01:00
Marc André Tanner
884e3bb2ca
Print server process ID in session list
2018-03-18 15:06:37 +01:00
Marc André Tanner
e48ea73ce0
Move server_accept_client function around
2018-03-18 15:06:37 +01:00
Marc André Tanner
bb7e4e77f4
Remove MSG_REDRAW it was actually never sent by the client
2018-03-18 15:06:31 +01:00
Marc André Tanner
17b386e93f
Print MSG_EXIT packet exit code in debug output
2018-03-18 15:05:27 +01:00
Marc André Tanner
52d5c7d098
Update test suite to account for ignored output
...
If stdin is not a terminal no command output will be received.
2018-03-17 13:30:52 +01:00
Marc André Tanner
fd34b98db7
Add explicit option for command pass through
...
This allows commands to be send interactively (i.e. when stdin refers
to a terminal). Also imply attach action if none is given, hence:
$ abduco -p session
cowsay hi
^D
can also be used to send input to a session.
2018-03-17 13:30:52 +01:00
Marc André Tanner
c901f2bbb8
If stdin is not a terminal pass-through its data to the session
...
This allows to send commands to a running session:
echo cowsay hi | abduco -a session
See #8 for initial discussion of the feature.
2018-03-17 13:30:52 +01:00
Marc André Tanner
5a46912d62
Add -q (quiet) option to disable unnecessary output
2018-03-17 13:30:52 +01:00
Marc André Tanner
3e3308d4e3
Only manipulate output terminal state if it is a terminal
2018-03-17 13:30:51 +01:00
Marc André Tanner
fdbda93131
Correct EOF handling on client stdin
...
Previously we would end in an infinite loop which might be the cause
of #15 .
2018-03-17 13:30:51 +01:00
Marc André Tanner
315338a572
Update year numbers
2018-03-17 13:30:25 +01:00
Marc André Tanner
650f2ec348
Merge branch 'patch-1' of https://github.com/waldyrious/abduco
...
Conflicts:
LICENSE
2018-03-17 13:28:28 +01:00
Marc André Tanner
a1db9e2dae
Check return value of chdir(2) where it makes sense
2017-06-27 10:09:32 +02:00
Marc André Tanner
66a17ed03d
Add configure script to detect compiler flags and feature test macros
...
This is the same musl originated configure script as vis uses.
2017-06-27 10:09:32 +02:00
Marc André Tanner
1f1c02a3b0
Avoid use of BUFSIZ to guarantee system independent package size
2017-06-27 08:50:10 +02:00
Marc André Tanner
482237919b
Fix length of MSG_RESIZE packet
...
We no longer send the complete struct winsize.
2017-06-27 08:49:22 +02:00
Marc André Tanner
7ee5e79cf5
Update year numbers
2017-06-21 23:12:55 +02:00
Marc André Tanner
8964601fe1
Use fixed size integer types in protocol messages
...
This should make it possible to connect with a 32bit client to a 64bit
server. This might also make it possible to forward the abduco socket
over SSH as described in #25 . Different endianness are not supported at
this time.
This is a breaking protocol change. Make sure to use the same version
as client and server (anything else is unsupported anyway!).
2017-06-21 22:52:14 +02:00
Marc André Tanner
6375556846
Use defines instead of numeric values for standard file descriptors
2017-06-21 22:51:54 +02:00
Waldir Pimenta
228b609361
add license title
...
It's not strictly required, but it's useful metadata, and part of the recommended license template text:
- http://choosealicense.com/licenses/isc/
- https://opensource.org/licenses/isc-license
- http://spdx.org/licenses/ISC.html#licenseText
2016-07-29 09:43:02 +01:00
Marc André Tanner
df780cf6cc
Mention release in README
2016-03-24 15:50:08 +01:00
Marc André Tanner
e76729a2df
Set version to 0.6
2016-03-24 14:48:23 +01:00
Marc André Tanner
a0d8e45cfe
Update year to 2016
2016-03-24 14:48:23 +01:00
Stefano Frabetti
c6b2e7da31
Clarify KEY_REDRAW default value (i.e. disabled)
2016-01-31 19:08:52 +01:00
Marc André Tanner
e671c024c9
Only test for redraw key if it is actually configured
...
This should make CTRL-Space work by default.
2016-01-31 11:53:43 +01:00
Marc André Tanner
5b9fcf5e52
Revert "Set sticky bit on socket"
...
This reverts commit 15ae398ea5 .
Setting the sticky bit on a file is not really portable and
causes more problems than it solves.
The reason why this was done in the first place, is that the
XDG Base Directory Specification states that files with the
sticky bit set should not be touched by periodic cleanup
procedures.
Close #13
2016-01-25 08:17:57 +01:00
Marc André Tanner
f71f02e6d6
Merge branch 'env' of https://github.com/Pyrohh/abduco
2016-01-25 08:17:20 +01:00