detaching

From: Date: Tue, 08 Jul 2003 20:48:33 +0000
Subject: detaching
Groups: php.general 
Request: Send a blank email to php-general+get-154431@lists.php.net to get a copy of this message
Hello! first my code #!/usr/local/bin/php -q <?php echo "Detached: ".posix_setsid()."\n"; for ($i=0;$i<10;$i++) { sleep(3); } echo "Done!\n"; ?> I read that posix_setsid return pid on succesfull detaching. But i get -1. I read man for setsid and this -1 mean error. What i want is that if i run this script with automatic detaching. But it does nothing than waiting this for to finish. What am I doing wrong. -- lp, Uros mailto:uros.gruber@sir-mag.com

« previous php.general (#154431) next »