2
0

9 Commits

Author SHA1 Message Date
9f3c8f7cbd treewide: nixfmt and deadnix 2025-11-11 21:49:45 +00:00
ead6cb918a log backfill: synthesize timestamps when in 1970s
if the log message timestamp is in 1970, treat it as if
the epoch were the system boot time
2025-10-28 23:29:20 +00:00
0f90f3f46d lualinux.open needs three args 2025-10-27 21:18:52 +00:00
481715f906 remove debug output 2025-10-27 21:16:49 +00:00
26e1608fa7 align log shipping start/stop messages between producer and consumer
also there's no need to make it configurable, so get rid of that
2025-10-26 20:41:19 +00:00
ad9bba4f93 logtap: add WIP backfill command 2025-10-26 20:34:52 +00:00
b49beb2c86 make logtap notice sooner when the shipper dies
fifo(7) says

       Under Linux, opening a FIFO for read and write will succeed both
       in blocking and nonblocking mode.  POSIX leaves this behavior
       undefined.  This can be used to open a FIFO for writing while
       there are no readers available.

       When a process tries to write to a FIFO that is not opened for
       read on the other side, the process is sent a SIGPIPE signal.

but ... that doesn't match what I saw, which was that it carried on
writing until the buffer filled and then it blocked or returned -1
(depending on O_NONBLOCK)

Switch to opening O_WRONLY | O_NONBLOCK and retrying periodically
if it fails
2025-10-09 21:16:54 +01:00
71aed767f2 switch logtap to use fifo unstead of af_unix 2025-10-08 20:10:11 +01:00
a343e63231 rename logshipper -> logtap
- it matches the executable name
- it doesn't ship anything anyway, it's just plumbing
2025-10-08 20:10:11 +01:00