Changeset 6ace5cf97aee2e334a8f34943d429296fba30cd0

Show
Ignore:
Timestamp:
02/19/10 16:01:00 (8 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1266595260 +0000
git-parent:

[78d341feba82886871eb3f6adbf5f56bbe435b05]

git-author:
Mark Harrison <mark@omniti.com> 1266595260 +0000
Message:

Change method of daemonizing to fix an issue with run_cmd

git-svn-id: https://labs.omniti.com/resmon/trunk@243 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • resmon

    rfdf483d r6ace5cf  
    109109  fork && exit; 
    110110  setsid; 
    111   close(STDIN); 
    112   close(STDOUT); 
    113   close(STDERR); 
     111  open(STDIN, "</dev/null"); 
     112  open(STDOUT, ">/dev/null"); 
     113  open(STDERR, ">/dev/null"); 
    114114  fork && exit; 
    115115}