Running python as a deamon (rfork)

greg andruk meowing at banet.net
Tue Oct 12 15:26:10 EDT 1999


Fredrik Lundh <fredrik at pythonware.com> wrote:

[rfork()]

> are you sure it's POSIX?

It's a Plan 9 thing, ported to some BSD flavors.

> (all on-line references I could found said that rfork is a *major*
> security hole in BSD unix...)

Or was.  This was a big deal a couple years ago, but it should be
working okay on systems released since 1998.  Still, since it's
definitely not portable it's probably premature to be using it for
other than private code.

The traditional way to get this behavior is with ioctl() and fork();
the POSIX way is to use setsid().




More information about the Python-list mailing list