Commit Graph

7 Commits

Author SHA1 Message Date
4204d68eed fix(db-tool): prevent fd leak from logger to long-running daemons
The hectic logger opens fd 3 as a dup of stderr. Child processes inherit
this fd, and daemonized PostgreSQL/PostgREST keeping it open prevents the
terminal from returning to the prompt after the spawning script exits.

- Add with_closed_fds helper that runs commands in a subshell with fds
  3-9 redirected to /dev/null
- Inline the helper into both database and postgres-init builds
- Wrap pg_ctl start and postgrest with the helper
2026-05-03 03:14:15 +00:00
683370a71c feat: stong &2 in log.sh 2026-02-05 06:50:54 +00:00
78f4777141 feat(package): hemar: some parser work 2025-11-29 00:30:27 +00:00
f5d412997e feat(package): hemar: conected to nix config 2025-11-24 14:33:45 +00:00
00f05cc3db feat(legacy): helpers: allow HECTIC_NAMESPACE be empty 2025-11-16 16:56:26 +00:00
bb99ef9a8a feat(legacy): helpers: update log, unefficient but works 2025-11-16 16:38:38 +00:00
532f4b0901 feat(legacy): +writeDash +helpers 2025-11-03 18:51:38 +00:00