fghack

## Name

fghack — an anti-backgrounding tool

## Synopsis

`fghack` {`child`}

## Description

fghack runs `child` with many extra descriptors writing to a pipe. fghack reads and discards any data written to the pipe. After `child` has exited and the pipe has been closed, fghack exits.

## History

fghack was originally part of Daniel J. Bernstein's daemontools toolset in 2001.

## Author

Original code and documentation by Daniel J. Bernstein. Documentation modernizations by Jonathan de Boyne Pollard.