fghack(8)
π fghack β the anti-backgrounding tool, bestie π
ok so this is fghack(8) from the System Manager's Manual, and honestly? she's a tiny queen with one job. let's get into it β¨
β¨ NAME β¨
fghack β it's an anti-backgrounding tool. that's the whole vibe. no cap.
π SYNOPSIS π
fghack child
π¦ DESCRIPTION π¦
okay so here's the tea, bestie π΅
fghack runs child with many extra descriptors writing to a pipe. that's right β it sets up a whole lil pipe situation and hands your child a bunch of extra descriptors pointing at it, like "here you go girl, write whatever you want π
".
then fghack reads and discards any data written to that pipe. literally just. throws it away. no thoughts, head empty, data deleted πΈ.
after child has exited and the pipe has been closed, fghack exits. both of those things. in that order. the pipe has to be closed too, okay? periodt π
so the way this works: if child tries to pull the "lol I'm just gonna background myself and let my parent exit" move, the open descriptors keep the pipe alive, and fghack is still hanging around reading it. the trick does not work. iconic behaviour tbh π
π SEE ALSO π
supervise(8)svc(8)svok(8)svstat(8)svscanboot(8)svscan(8)readproctitle(8)pgrphack(8)multilog(8)tai64n(8)tai64nlocal(8)setuidgid(8)envuidgid(8)envdir(8)softlimit(8)setlock(8)
http://cr.yp.to/daemontools.html
and that's the whole page, bestie!! π«Ά this one lives in the System Manager's Manual, she's fghack(8), and she comes to you straight from the daemontools fam over at http://cr.yp.to/daemontools.html β go give the rest of the crew some love, they all showed up in SEE ALSO for a reason πβ¨ bye pookie, go read a manpage π§
π¦ where this page comes from
- debian bookworm: daemontools 1:0.76-8.1 Β· LicenseRef-public-domain
- debian trixie: daemontools 1:0.76-14 Β· LicenseRef-public-domain
- nixpkgs unstable: daemontools 0.76
- ubuntu jammy: daemontools 1:0.76-7
- ubuntu noble: daemontools 1:0.76-10 Β· LicenseRef-public-domain
- ubuntu questing: daemontools 1:0.76-15
- ubuntu resolute: daemontools 1:0.76-15build1 Β· LicenseRef-public-domain
- ubuntu stonking: daemontools 1:0.76-15build1 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms