Commit ff474617 authored by Mike Hibler's avatar Mike Hibler

Add setsid call to TBBackGround to more completely detach the process

after forking
parent c5777c2b
......@@ -8,6 +8,7 @@
use English;
use POSIX qw(strftime);
use POSIX qw(setsid);
use Fcntl;
use IO::Handle;
......@@ -203,6 +204,12 @@ sub TBBackGround($)
# Create a new session to ensure we are clear of any process group
POSIX::setsid() or
die("setsid failed: $!");
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment