Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

daemon

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daemon - npm Package Compare versions

Comparing version
1.1
to
1.2
+5
-5
daemon.py
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2014 Sauce Labs Inc
# Copyright (c) 2009-2018 Sauce Labs Inc
#

@@ -70,3 +70,3 @@ # Portions taken from twistd:

os._exit(0) # kill off parent again.
os.umask(022) # Don't allow others to write
os.umask(0o22) # Don't allow others to write
null=os.open('/dev/null', os.O_RDWR)

@@ -76,3 +76,3 @@ for i in range(3):

os.dup2(null, i)
except OSError, e:
except OSError as e:
if e.errno != errno.EBADF:

@@ -106,6 +106,6 @@ raise

os.kill(pid, 0)
except OSError, why:
except OSError as why:
if why[0] == errno.ESRCH:
# The pid doesnt exists.
print('Removing stale pidfile %s' % pidfile)
print(('Removing stale pidfile %s' % pidfile))
os.remove(pidfile)

@@ -112,0 +112,0 @@ else:

Metadata-Version: 1.0
Name: daemon
Version: 1.1
Version: 1.2
Summary: UNKNOWN

@@ -5,0 +5,0 @@ Home-page: UNKNOWN

@@ -7,4 +7,4 @@ # -*- coding: utf-8 -*-

name="daemon",
version="1.1",
version="1.2",
py_modules=['daemon']
)