~aperezdc/dmon

58802e45 — Adrian Perez de Castro 3 years ago master
xbuild: Disable a few non-working arches
4e35ab38 — Adrian Perez de Castro 3 years ago
xbuild: Utility script to cross-compile static binaries
26ca7971 — Adrian Perez de Castro 3 years ago v0.5.1
Version 0.5.1
50b2d4d3 — Adrian Perez de Castro 3 years ago
dlog: Avoid trying to close an invalid file descriptor

Avoid a call to close() for the output file descriptor if the file has
not yet been opened. This can happen if no input at all is provided or
--skip-empty/-e is enabled and only empty lines are read.

The issue was reproducible as follows:

  % ./dlog -e < /dev/null
  WARN   Closing log: Bad file descriptor  [dlog.c:163, main]
  %
65565f9a — Adrian Perez de Castro 3 years ago
d[r]log: Reduce size of iovec struct arrays

Now that the trailing newline character is present in the line buffers
and not added anymore as the last iovec entry, it is possible to reduce
the size of the arrays by one.
9e5aad64 — Adrian Perez de Castro 3 years ago
d[sr]log: Add --skip-empty/-e command line option

Add a new --skip-empty/-e command line option which can be used to
discard empty input lines. By default empty input lines are copied
over to the output log.
f2df4ba1 — Matt Schulte 3 years ago
Prevent logging from exiting on empty lines

Before this commit, `freadline` did not distinguish between an empty
line and EOF. This would case a printf such as

```
printf("\nHello, World\n");
```

to cause dlog, dslog, or drlog to exit.

In order to fix this, this commit includes the delimiter in the result
of `freaduntil`, which means `\n` will be included in all calls to
`freadline`.

Fixes #10
Fixes #12
d0ce7a03 — Matt Schulte 3 years ago
Remove GCC 4.x -std=c99 workaround
5d8086ae — Matt Schulte 3 years ago
Place #include <sys/sysinfo.h> in UCLIBC #ifdef
357e8e71 — Matt Schulte 3 years ago
Compile under gcc 4.7 and with uclibc

Validated compilation under -std=gnu99 and -std=gnu11 using gcc 4.7.2
and gcc 9.3.0.
8c5e4bed — Matt Schulte 3 years ago
Add libsetunbuf LD_PRELOAD-able helper
de807246 — Adrian Perez de Castro 3 years ago
man: Add COUNT metavariable for -m/--max-respawns

Also, regenerate the prebuilt dmon.8 file.
85236e66 — Adrian Perez de Castro 3 years ago
dmon: Propagate exit status of monitored process

This is particularly useful when using the -m/--max-respawns option to
know whether the monitored process finished correctly or otherwise know
that it failed after the maximum amount of retries.
aae45ce8 — Matt Schulte 3 years ago
Add max-respawns parameter to dmon
fc15fed5 — Adrian Perez de Castro 4 years ago v0.5.0
Version 0.5.0
d68fa46d — Adrian Perez de Castro 4 years ago
Add .gitattributes to control archived files
75f6009d — Adrian Perez de Castro 4 years ago
Makefile: Add convenience "dist" target
792abaeb — Adrian Perez de Castro 4 years ago
Make git ignore libdmon.a
b85b4a57 — Adrian Perez de Castro 4 years ago
multicall: Support listing available applets

Add support for listing the available applets in a multicall dmon
binary, if the DMON_LIST_MULTICALL_APPLETS environment variable is
set. In that case only the list is printed, one item per line, and
the program will exit immediately.
671671b1 — Adrian Perez de Castro 4 years ago
README: Bring back text about MULTICALL=0|1
Next