os.urandom points to \dev\urandom which is opened before daemonization, closed by the daemonizer, then used by the Werkzeug debugger, causing a crash.
To reproduce (Python 3.4.0 on Ubuntu 14.04):
./create_regnet.py
ps -A | grep python
kill the first PID (for Alice)
./lightningd.py -datadir=/home/.../Lightning/regnet/Alice -debug -daemon
cat regnet/Alice/lightning.log
os.urandom
points to\dev\urandom
which is opened before daemonization, closed by the daemonizer, then used by the Werkzeug debugger, causing a crash. To reproduce (Python 3.4.0 on Ubuntu 14.04):