1
0
Fork
You've already forked capeutils
0
Experimental command line utilities for runscripts and etc.
  • C 59.6%
  • Roff 36.6%
  • Meson 3%
  • M4 0.8%
Find a file
2025年09月18日 13:45:41 -03:00
man1 add pidfd utilities 2025年09月18日 13:39:39 -03:00
src build reaperhack 2025年09月18日 13:45:41 -03:00
.gitignore do not use a bespoke build system 2024年05月21日 19:17:29 -03:00
meson.build build reaperhack 2025年09月18日 13:45:41 -03:00
meson_options.txt cenvfile: drop 2025年09月04日 22:14:26 -03:00
README.md cenvfile: drop 2025年09月04日 22:14:26 -03:00

An assortment of utilities I found useful on my machine(tm).

Most of them are designed as standalone "software tools", useful in scenarios like:

  • ad hoc command line usage
  • run scripts for daemontools and derivatives
  • "helpers" in programming languages that can work with external programs
  • prefixes to command=/Exec= directives in other supervisors

Other than local-reaper + reaperhack, they're 100% useful without one another.

Current functionality:

  • Miscellaneous Linux prctls (local-reaper, pdeathsig).
  • Turning the read end of a pipe into a seekable file descriptor (memfd-seekablepipe).
  • Preopening sockets for programs that use sd_listen_fds(3) or its reimplementations (listen-fds).
  • Tracking double forking processes (reaperhack, requires local-reaper).
  • poll(2) from the shell (ciopause).
  • socketpair(2) from the shell (ipc-socketpair).

Read the enclosed manuals for more information and a few examples.

Dependencies:

  • meson/muon (build-time).
  • skalibs (build-time and runtime for most programs, except local-reaper, reaperhack and memfd-seekablepipe)
  • execline (build-time and runtime for listen-fds and ciopause).

Portable tools:

  • recvfd/sendfd.
  • ipc-socketpair

Somewhat portable tools:

  • listen-fds (but systemd's socket preopening API hasn't gained much traction outside of Linux).
  • reaperhack (with nosh's local-reaper, only on FreeBSD).