Skip to content

Commit

Permalink
Fix exception in case log folders already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrofran12 committed Mar 22, 2020
1 parent 28b51ae commit 150a17c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pimdm/Daemon/Daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def daemonize(self):
sys.exit(1)

# decouple from parent environment
os.makedirs('/var/log/pimdm/')
os.makedirs('/var/log/pimdm/', exist_ok=True)
os.chdir('/var/log/pimdm/')
os.setsid()
os.umask(0)
Expand Down
2 changes: 1 addition & 1 deletion pimdm/Run.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import argparse
import traceback

VERSION = "1.0.4.1"
VERSION = "1.0.4.2"

def client_socket(data_to_send):
# Create a UDS socket
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
long_description=open("README.md", "r").read(),
long_description_content_type="text/markdown",
keywords="PIM-DM Multicast Routing Protocol Dense-Mode Router RFC3973",
version="1.0.4.1",
version="1.0.4.2",
url="http://github.com/pedrofran12/pim_dm",
author="Pedro Oliveira",
author_email="pedro.francisco.oliveira@tecnico.ulisboa.pt",
Expand Down

0 comments on commit 150a17c

Please sign in to comment.