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.0
to
1.1
+10
-4
daemon.py
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2010 Sauce Labs Inc
# Copyright (c) 2009-2014 Sauce Labs Inc
#

@@ -82,3 +82,7 @@ # Portions taken from twistd:

def writePID(pidfile):
open(pidfile,'wb').write(str(os.getpid()))
try:
f = open(pidfile,'wb')
f.write(str(os.getpid()))
finally:
f.close()
if not os.path.exists(pidfile):

@@ -93,5 +97,8 @@ raise Exception( "pidfile %s does not exist" % pidfile )

try:
pid = int(open(pidfile).read())
f = open(pidfile)
pid = int(f.read())
except ValueError:
sys.exit('Pidfile %s contains non-numeric value' % pidfile)
finally:
f.close()
try:

@@ -114,2 +121,1 @@ os.kill(pid, 0)

writePID(pidfile)
Metadata-Version: 1.0
Name: daemon
Version: 1.0
Version: 1.1
Summary: UNKNOWN

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

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

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