hashplex / Lightning

Experimental Lightning Node
MIT License
43 stars 11 forks source link

Running as a daemon with debug mode on causes a crash. #1

Closed jashug closed 9 years ago

jashug commented 9 years ago

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
jashug commented 9 years ago

I dropped daemonization support (temporarily at least), so this is no longer relevant.