fghack(8)

πŸ“¦
version 0.76 Β· 2 versions
  • 0.76 Β· debian bookworm, debian trixie, nixpkgs unstable, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.11 Β· alpine 3.24
, in debian bookworm, debian trixie, nixpkgs unstable, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 🌈

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