diff options
author | Carlo Teubner <carlo.teubner@gmail.com> | 2016-06-25 23:56:51 +0100 |
---|---|---|
committer | Carlo Teubner <carlo.teubner@gmail.com> | 2016-08-20 10:00:03 +0100 |
commit | 13761c4ec25e7f5b496d00eba06e390bb8c412dd (patch) | |
tree | bec6a1856efddf54622f06c31e06d7c9887493e0 /src | |
parent | 45fd66f6e139d4a2251376dcbd3fe1a51e8f9a9e (diff) |
daemonize(): use os.devnull instead of hardcoded /dev/null
Diffstat (limited to 'src')
-rw-r--r-- | src/borg/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/borg/helpers.py b/src/borg/helpers.py index 759291442..d6237c5be 100644 --- a/src/borg/helpers.py +++ b/src/borg/helpers.py @@ -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) |