Patch: prevent process duplication

2 views
Skip to first unread message

madbox

unread,
Nov 11, 2008, 12:59:45 PM11/11/08
to simple-daemon
Hi all.

I like simple-daemon gem, but i miss this feature(see subj) so i wrote
a patch.
Patch adds some logic to Controller.start method to check presense of
PID file and status of prosess with PID stored.

It's my first self made patch so don't get mad on me if i do something
wrong. :)

madbox

unread,
Nov 12, 2008, 5:08:33 AM11/12/08
to simple-daemon
Hi again.

I have some bug fixes, so i can attach them too.
1. removed Dir.chdir while opening log file. couses unexpected current
directory.
2. 'exit' replaced with 'return' in 'start' and 'stop' routines.
Reply all
Reply to author
Forward
0 new messages