1e22b5cda04b6d5e0dd83ab8e6ecb452cf34851f |
|
28-Jan-2016 |
Lennart Poettering <lennart@poettering.net> |
core: don't reset /dev/console if stdin/stdout/stderr as passed as fd in a transient service
Otherwise we might end resetting /dev/console all the time when a transient service starts or stops.
Fixes #2377
Fixes #2198
Fixes #2061 |
40c9fe4c0862114dab390c8ed16f78cf056b9140 |
|
20-Jan-2016 |
Jan Synacek <jsynacek@redhat.com> |
basic/terminal-util: introduce SYSTEMD_COLORS environment variable
... to determine if color output should be enabled. If the variable is not set,
fall back to using on_tty(). Also, rewrite existing code to use
colors_enabled() where appropriate. |
f5e5c28f42a2f6d006785ec8b5e98c11a71bb039 |
|
13-Jan-2016 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
tree-wide: check if errno is greater then zero
gcc is confused by the common idiom of
return errno ? -errno : -ESOMETHING
and thinks a positive value may be returned. Replace this condition
with errno > 0 to help gcc and avoid many spurious warnings. I filed
a gcc rfe a long time ago, but it hard to say if it will ever be
implemented [1].
Both conventions were used in the codebase, this change makes things
more consistent. This is a follow up to bcb161b0230f.
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61846 |
93cc7779e0c121b75183920173f37cd1ee9d59cf |
|
01-Dec-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
basic: re-sort includes
My previous patch to only include what we use accidentially placed
the added inlcudes in non-sorted order. |
11c3a36649e5e5e77db499c92f3cdcbd619efd3a |
|
30-Nov-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
basic: include only what we use
This is a cleaned up result of running iwyu but without forward
declarations on src/basic. |
b938cb902c3b5bca807a94b277672c64d6767886 |
|
06-Nov-2015 |
Jan Engelhardt <jengelh@inai.de> |
doc: correct punctuation and improve typography in documentation |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
b8faf2ecd551d853c449c7cadc3944af84156bc9 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move status printing stuff into src/core/
It's very specific to the core, and not used elsewhere, hence move it
out of terminal-util.[ch]. |
8fcde01280adcbd07e8205b91ac52b06305b6208 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split stat()/statfs()/stavfs() related calls into stat-util.[ch] |
f4f15635ec05293ffcc83a5b39f624bbabbd8fd0 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move a number of fs operations into fs-util.[ch] |
6bedfcbb2970e06a4d3280c8fb62083d252ede73 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] |
2583fbea8e762d2e915582af60560f884d5093f5 |
|
26-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
socket-util: move remaining socket-related calls from util.[ch] to socket-util.[ch] |
c004493cdefc1f43a3956ca529e8070f8d70be56 |
|
26-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out IO related calls to io-util.[ch] |
3ffd4af22052963e7a29431721ee204e634bea75 |
|
25-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out fd-related operations into fd-util.[ch]
There are more than enough to deserve their own .c file, hence move them
over. |
07630cea1f3a845c09309f197ac7c4f11edd3b62 |
|
24-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split our string related calls from util.[ch] into its own file string-util.[ch]
There are more than enough calls doing string manipulations to deserve
its own files, hence do something about it.
This patch also sorts the #include blocks of all files that needed to be
updated, according to the sorting suggestions from CODING_STYLE. Since
pretty much every file needs our string manipulation functions this
effectively means that most files have sorted #include blocks now.
Also touches a few unrelated include files. |
1ba239315ff449779189bde77361f323851dc39f |
|
08-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util: minor modernization of vt_disallocate() |
3d18b167558bde95a076b16d40f9454f169e70ba |
|
08-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util: do not reset terminal in acquire_terminal()
Before, we'd always reset acquired terminals, which is not really
desired, as we expose a setting TTYReset= which is supposed to control
whether the TTY is reset or not. Previously that setting would only
enable a second resetting of the TTY, which is of course pointless...
Hence, move the implicit resetting out of acquire_terminal() and make
the callers do it if they need it. |
40e1f4ea7458a0a80eaf1ef356e52bfe0835412e |
|
08-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
machined: when opening a shell via machined, pass tty fds in
With this change we'll open the shell's tty right from machined and then
pass it to the transient unit we create. This way we make sure the pty
is opened exactly as long as the transient service is around, and no
longer, and vice versa. This way pty forwarders do not have to deal with
EIO problems due to vhangup, as the pty is open all the time from the
point we set things up to the point where the service goes away. |
66cb2fde7b0ab6603775ad13c30c004f5fd88f0c |
|
08-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
basic: move two more terminal-related calls into terminal-util.[ch] |
2c6c4ab2f5523940df64af205315612d89b818f0 |
|
01-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
logind: remove warn_melody() logic
The internal speaker is usually not available on modern latops that
support suspend, and even if it is available in the hardware, most
distributions turned support for it off in the kernel. And even if it is
enabled, it's probably still a bad idea to make use of it for the
suspend-failures. If anything a proper sound should be played.
Long story short, let's remove support of this anachronism. |
b9e74c399458a1146894ce371e7d85c60658110c |
|
29-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
core: rework crash handling
This introduces a new systemd.crash_reboot=1 kernel command line option
that triggers a reboot after crashing.
This also cleans up crash VT handling. Specifically, it cleans up the
configuration setting, to be between 1..63 or a boolean. This is to
replace the previous logic where "-1" meant disabled. We continue to
accept that setting, but only document the boolean syntax instead.
This also brings the documentation of the default settings in sync with
what actually happens.
The CrashChVT= configuration file setting is renamed to CrashChangeVT=,
following our usual logic of not abbreviating unnecessarily. The old
setting stays support for compat reasons.
Fixes #1300 |
1fc464f6fbecfc5d8ba9f7b98d19e21fb324bfb9 |
|
22-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
cgtop: underline table header
Let's underline the header line of the table shown by cgtop, how it is
customary for tables. In order to do this, let's introduce new ANSI
underline macros, and clean up the existing ones as side effect. |
a07c35c3e65c16264cb25206c2d564afdbae8a28 |
|
01-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
machined: introduce a ptsname_namespace() call and make use of it
The call is like ptsname() but does not assume the pty path was
accessible in the local namespace. It uses the same internal ioctl
though. |
35bdab779ff1ebff72b9a9b1c661978d14793924 |
|
03-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
terminal-util: no real reason to assert on O_CREAT
That's just handle this as a normal error. |
7d927c9a4d3e05a87659e89844a7d26bb0b86d8b |
|
03-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
terminal-util: cast a couple of ioctl()s to void |
0a8b555ceb07ce916b9bd48782d1eb69a12f0f2e |
|
03-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
terminal-util: when resetting terminals, don't wait for carrier
In case of non-CLOCAL lines (i.e. those with carrier detect configured)
we shouldnt wait for a carrier if all we try to do is reset the TTY.
Hence, whenever we open such a TTY pass O_NONBLOCK.
Note that we continue to open ttys we intend to write to without
O_ONBLOCK, we only add it in cases we invoke ioctl()s or other terminal
operations without reading or writing to the device.
Fixes #835. |
a095315b3c31f7a419baceac82c26c3c5ac0cd12 |
|
11-Jun-2015 |
Kay Sievers <kay@vrfy.org> |
build-sys: split internal basic/ library from shared/
basic/ can be used by everything
cannot use anything outside of basic/
libsystemd/ can use basic/
cannot use shared/
shared/ can use libsystemd/ |