~aperezdc/dmon

ce2419bb — Adrian Perez de Castro 4 months ago master
xbuild: Update with targets supported by Zig 0.13.0
ab25e2bf — Adrian Perez de Castro 4 months ago v0.6.0
Version 0.6.0
072f56e9 — Adrian Perez de Castro 4 months ago
Fix the build on OpenBSD, and possibly other BSDs
6d901c40 — Adrian Perez de Castro 4 months ago
make: Fix building libnofork and libsetunbuf
dfa5f855 — Adrian Perez de Castro 4 months ago
denv: Use exit code 111 for most errors

Use exit code 111 to make it possible to tell apart errors from
denv/envdir baefore executing the child program, from errors
during execution of the child itself. This follows the convention
from daemontools/envdir.
6717ec5a — Adrian Perez de Castro 4 months ago
denv: Make stat/open errors fatal in env_envdir

Consider error from stat/open fatal when reading a directory with
environment entries (env_envdir); under the assumption that the
directory and its contents should be readable. It seems better to
bail loudly rather than silently skip actions explicitly requested
with command line switches.
41755805 — Adrian Perez de Castro 4 months ago
denv: Improve error reporting and its consistency

Change a few die() and clog_warning() call sites to use the same format
for error reporting, using fuller paths where possible, and replacing
strerror(errno) usage with ERRSTR.
80a06d24 — Adrian Perez de Castro 4 months ago
util: Remove leftover $E format specifier in message

Change a leftover $E specifier in a format string into a %s
plus ERRSTR combination. The $E specifier was used before the
removal of the libwheel dependency, and should not have been
used after acd8448.
5ea71b68 — Adrian Perez de Castro 4 months ago
util: Move reallocarray() detection into header

Move the definition of USE_LIBC_REALLOCARRAY, and the associated
redirection macro into util.h, which makes it possible to use the
fallback implementation (if needed) in translation units other
than util.c; e.g. the recently added denv.c needs this.
9b19ec76 — Adrian Perez de Castro 4 months ago
Retry system calls that may be interrupted with EINTR
be18057b — Adrian Perez de Castro 4 months ago
denv: Support being invoked as envdir

Add the needed code to support being invoked as envdir, both for the
standalone and multicall binaries.
ca8cab80 — Adrian Perez de Castro 4 months ago
CI: Remove Sourcehut builds configuration
cb7c8030 — Adrian Perez de Castro 4 months ago
Makefile: Add denv to targets where it is missing
44bae0fd — Adrian Perez de Castro 4 months ago
denv: Rename --direnv CLI option to --envdir

Change the --direnv option to --envdir, which has the same name as the
daemontools utility. This should make it easier for users to remember
it or recognize what it does without having to read the manual.
Moreover, the option was already listed as --envdir in the manual.
fac2e859 — Adrian Perez de Castro 4 months ago
denv: Add manual page
2ff64c37 — Adrian Perez de Castro 4 months ago
dlog: Fix typo in manual page
0fd62ad5 — Adrian Perez de Castro 4 months ago
denv: Support loading environment.d(5) files

Add a new -f/--file which loads variables in the environment.d(5)
format. Variable expansions are not supported at the moment.
16786751 — Adrian Perez de Castro 4 months ago
denv: Consider only-whitespace files as empty

Handle the case where a file read from an envdir contains only
whitespace in the line read as input, treating it as it were an
empty (zero byte) file by removing the corresponding environment
variable.
bc220feb — Adrian Perez de Castro 4 months ago
denv: Add missing newline at end of exit message
09c87307 — Adrian Perez de Castro 4 months ago
denv: Treat form-feed characters as trimmable whitespace
Next
Do not follow this link