mirror of https://github.com/borgbackup/borg.git
daemonize(): use os.devnull instead of hardcoded /dev/null
This commit is contained in:
parent
45fd66f6e1
commit
13761c4ec2
|
@ -1001,7 +1001,7 @@ def daemonize():
|
|||
os.close(0)
|
||||
os.close(1)
|
||||
os.close(2)
|
||||
fd = os.open('/dev/null', os.O_RDWR)
|
||||
fd = os.open(os.devnull, os.O_RDWR)
|
||||
os.dup2(fd, 0)
|
||||
os.dup2(fd, 1)
|
||||
os.dup2(fd, 2)
|
||||
|
|
Loading…
Reference in New Issue