tweaking for FCGI stuff
[gitmo/MooseX-Daemonize.git] / t / 30.with_pid_file.t
index 61414a7..2e6f718 100644 (file)
@@ -41,8 +41,6 @@ $ENV{MX_DAEMON_STDERR} = catfile($CWD, 'Err.txt');
         $self->daemonize;
         return unless $self->is_daemon;
         
-        $self->pidfile->write;
-        
         # make it easy to find with ps
         $0 = 'test-app';
         $SIG{INT} = sub { 
@@ -106,3 +104,5 @@ if (DEBUG) {
 ok(!$p->is_running, '... the daemon process is no longer running (' . $p->pid . ')');
 ok(!(-e $PIDFILE), '... the PID file has been removed');
 
+unlink $ENV{MX_DAEMON_STDOUT};
+unlink $ENV{MX_DAEMON_STDERR};