Keith Winstein
1bd38e6dab
Include sys/uio.h to fix OpenBSD build problem ( closes #391 )
2013-03-10 16:58:16 -04:00
Keith Winstein
770e4208cc
DiffServ codepoint and ECN: Roll back to just ECT (no DSCP)
2013-03-10 16:41:44 -04:00
Keith Winstein
093bbc9111
Detached warning: Omit spurious utmp entries (generated by screen)
2013-03-10 16:31:37 -04:00
Anders Kaseorg
a54e6d1661
STMClient::still_connecting: Make const
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #390 .
2013-03-10 15:48:12 -04:00
Anders Kaseorg
64f7f7abb2
Dispatcher::get_{dispatch_chars,OSC_string}: Make const
...
Found by cppcheck
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
8c5ded4e6f
Nonce::{cc_str,data}: Make const
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
866e1399d5
Socket::operator=: Return non-const reference
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
d0eeabb51e
human_readable_duration, Terminal::appendstring: Pass strings by reference
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
e2abb8524f
Catch exceptions by reference
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
5365d6b21d
Connection::recv: Rethrow the original exception instead of a copy
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
5f807dfdf8
src/examples/{encrypt,decrypt}: Read input using C++
...
cppcheck found an exception safety bug in the old code, but like,
really now.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:07 -04:00
Anders Kaseorg
ecdd2dd648
PRNG: Read input using C++
...
In the old code, cppcheck complained about throwing in the destructor,
but like, seriously?
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:07 -04:00
Anders Kaseorg
14ef590220
Base64::Base64: Fix exception safety
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:07 -04:00
Anders Kaseorg
b6f17917f6
Add OCB test program to ‘make check’
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #392 .
2013-03-10 15:47:39 -04:00
Anders Kaseorg
7b9e548aa0
Run tests with ‘make check’
...
The configure --enable-tests flag is no longer needed because
check_PROGRAMS are not built until you run ‘make check’.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:47:33 -04:00
Anders Kaseorg
a611ef5821
tests: Default to quiet
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:47:33 -04:00
Anders Kaseorg
ea3ad786fa
scripts/mosh: Add --no-init option to disable alternate screen mode
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #384 . Closes #2 .
2013-03-10 15:46:49 -04:00
Anders Kaseorg
ed42d31bda
Put the real terminal in alternate screen mode
...
Closes #2
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:39 -04:00
Anders Kaseorg
2ae960f7f0
Display: Abstract terminfo capability functions
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:38 -04:00
Anders Kaseorg
03217ddb5a
Move Emulator::{open,close} to Display
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:38 -04:00
Anders Kaseorg
ba8d013609
main: Don’t leak desired_ip memory
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #385 .
2013-03-10 15:45:52 -04:00
Anders Kaseorg
b9763b6997
serve: Remove dead store of bytes_read
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:45:47 -04:00
Anders Kaseorg
d6ff754a9a
get_SSH_IP: Don’t leak SSH_writable memory
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:45:47 -04:00
Anders Kaseorg
2686b7c634
main: Don’t leak shell_name memory
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:45:47 -04:00
sqweek
5af90cc1ac
Don't touch window title before an OSC is received.
...
Fixes the "window title being clobbered" issue raised in issue 137.
Signed-off-by: sqweek <sqweek@gmail.com >
Closes #380 . Closes #137 .
2013-03-10 15:44:49 -04:00
sqweek
13a16332d4
Treat empty OSC number as zero.
...
For interoperability's sake, accept OSCs of the form ESC];title^G
treating them the same as ESC]0;title^G
Signed-off-by: sqweek <sqweek@gmail.com >
2013-03-10 15:44:17 -04:00
Alexander von Gernler
ebe7ae96f6
fix a perror() message in mosh-server
...
A perror() message flanking an open() call was reading "dup2" where it
should read "open".
[closes #377 ]
2013-01-18 11:51:28 -05:00
Keith Winstein
2dcef54e24
Allow new states slowly even when queue full (fixes Axel Beckert lockup)
2013-01-15 02:03:35 -05:00
Keith Winstein
e9c4184c27
Fix compilation bug when clock_gettime missing
2013-01-14 22:25:03 -05:00
Anton Lundin
438d0d8b9a
Use the right term.h
...
When ncurses is in a separate include dir, we need to take the term.h
from there to match with the [n]curses.h
2012-12-16 17:30:14 +01:00
Keith Winstein
1fe6799092
Don't leak extra /dev/null fd (thanks to Julien Cristau)
2012-12-12 19:05:24 -05:00
Keith Winstein
1034f7092a
Wrap termio.h include in guard
2012-12-12 18:03:15 -05:00
Anton Lundin
99dc1f93cf
Use MSG_NONBLOCK when MSG_DONTWAIT doesn't exist
2012-12-01 14:49:29 +01:00
Anton Lundin
55eb2759c0
use unistd.h instead of getopt.h
...
getopt.h doesn't exist on AIX and getopt is in unistd.h
2012-12-01 14:49:29 +01:00
Anton Lundin
f1a4e209b6
Use c99 standard name instead of gcc-ism
2012-12-01 14:49:29 +01:00
Anton Lundin
846a2fa535
Port my_forkpty to be compatible with AIX
2012-12-01 14:49:29 +01:00
Anton Lundin
73d39980f4
Solaris term.h needs both termio.h and termios.h
...
On solaris, the term.h pulls in termio.h and termios.h if it detects
that they are not loaded. Because stmclient.h pulls in termios.h that
breaks type definitions in term.h that needs termio.h.
2012-12-01 12:53:29 +01:00
Anton Lundin
993abf57f1
Rework curses detection
...
Detect diffrent variants of curses and use them.
2012-12-01 12:53:28 +01:00
Anton Lundin
70a7c8024a
We can't iterate over the object we are modifying
...
If subtract is called on itself, prefix and this is the same and the
iterator is invalid after modifying the underlaying object.
Instead just clear everyting.
Closes #354 . Closes #355 .
2012-11-30 19:55:15 -05:00
Keith Winstein
a2da17d48a
Don't immediately clear network exceptions, even when problem solved
2012-11-26 04:19:56 -05:00
Keith Winstein
e2b40fcaa7
Show infobar when Ctrl-^ is typed.
2012-11-26 04:03:04 -05:00
Keith Winstein
5eafc209ea
Allow suspend by keystroke (Ctrl-^ Ctrl-Z)
...
(based on patch by Nickolai Zeldovich)
2012-11-26 03:34:14 -05:00
Keith Winstein
1c2b48abc6
mosh-server warning on unattached servers checks that device exists
2012-11-26 03:06:11 -05:00
Keith Winstein
2f8a67acc7
Adjust timeouts so server dies quicker, updates utmp slower
2012-11-26 02:21:06 -05:00
Keith Winstein
486325e76b
mosh-server: Fix bug where spins forever if process dies while disconnected
2012-11-26 02:14:48 -05:00
Keith Winstein
6a16eecce0
Use dup() instead of move semantics for Network::Socket
2012-11-23 13:31:23 -05:00
Keith Winstein
b018e3a1ab
Make "elapsed time" human readable even when other error is displayed
2012-11-05 22:02:46 -05:00
Keith Winstein
cdd00fee42
Simplify implementation of human_readable_duration()
2012-11-05 21:57:02 -05:00
Kevin Ballard
efbe9b2bab
Make the 'lost contact' string more human-readable
...
Teach the 'lost contact' warning string about time units larger than
seconds. After 60 esconds it will switch over to using a time display
that looks like 1:23, or 1:02:34.
Fixes #321 .
Signed-off-by: Kevin Ballard <kevin@sb.org >
2012-11-05 18:39:09 -08:00
Keith Winstein
28ed30c356
Allow stopping (via kill -STOP) and "fg" to resume session
2012-11-04 13:07:24 -05:00