Reimplement daemonize() without using daemon()
commitda5e07c057abbee8cc4d2beef03952c7a44fd9eb
authorWouter Verhelst <w@uter.be>
Tue, 6 Aug 2024 17:01:02 +0000 (6 19:01 +0200)
committerWouter Verhelst <w@uter.be>
Tue, 6 Aug 2024 17:06:17 +0000 (6 19:06 +0200)
treef7c368db014fb16f5e6b93a7fb4f2d412d017215
parent99cb65476224a55a98f74581cc87a2ad711e1f7e
Reimplement daemonize() without using daemon()

The daemon() helper function is widely implemented, but is not really
standardized and is actually somewhat buggy on some platforms.

Implementing the desired functionality is also not all that complicated.

So, do it ourselves.

Closes: gh-161
gznbd/.gitignore [deleted file]
gznbd/Makefile.am [deleted file]
gznbd/gznbd.c [deleted file]
nbd-server.c