• Avery Pennarun's avatar
    log(): don't abort if we fail to write to stderr. · 3a25f709
    Avery Pennarun authored
    Failing to write to the log sucks, but not as much as failing to clean up
    just because stderr disappeared.  So let's catch any IOError exception from
    log() and just ignore it.
    
    This should fix a problem reported by Camille Moncelier, which is that
    sshuttle firewall entries stick around if your tty dies strangely (eg. your
    X server aborts for some reason).
    3a25f709
helpers.py 541 Bytes