Php-cli, scripts freeze on exit
am 24.01.2010 20:16:54 von david
--=-4k/F1Q158qvm7wZtNka9
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Hi!
I'm using php-cli 5.3.1.
When I run php from the command line, the script does not return me to
the command prompt when exited. The script always completes, but it has
to be killed to release it's resources.
I've created a little working example:
#!/usr/bin/php
echo 'hellu';
exit(0);
?>
I execute the script by running "./test.php"
The script outputs "hellu" and then stops. It does not return to the
command prompt. The only way back is to kill the script.
This problem does not occur on my remote server, only on my home
environment. I have home-network maintenance scripts that execute other
scripts. If the executed script doesn't exit, the main scripts don't
continue.
I did a trace, and it turns out that the script is stopping on a futex
wait.
Thanks,
David W. Allor
--=-4k/F1Q158qvm7wZtNka9--
Re: Php-cli, scripts freeze on exit
am 24.01.2010 21:34:12 von hSiplu
On Mon, Jan 25, 2010 at 1:16 AM, David W. Allor wrote:
> Hi!
>
> I'm using php-cli 5.3.1.
>
> When I run php from the command line, the script does not return me to
> the command prompt when exited. The script always completes, but it has
> to be killed to release it's resources.
>
> I've created a little working example:
>
>
> #!/usr/bin/php
>
> echo 'hellu';
> exit(0);
> ?>
What if you dont use any exit(0) ??
--
Shiplu Mokaddim
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Php-cli, scripts freeze on exit
am 26.01.2010 04:12:23 von Camilo Sperberg
--000e0ce00a50966a6a047e08a7b3
Content-Type: text/plain; charset=ISO-8859-1
On Sun, Jan 24, 2010 at 16:16, David W. Allor wrote:
> Hi!
>
> I'm using php-cli 5.3.1.
>
> When I run php from the command line, the script does not return me to
> the command prompt when exited. The script always completes, but it has
> to be killed to release it's resources.
>
> I've created a little working example:
>
>
> #!/usr/bin/php
>
> echo 'hellu';
> exit(0);
> ?>
>
>
> I execute the script by running "./test.php"
>
> The script outputs "hellu" and then stops. It does not return to the
> command prompt. The only way back is to kill the script.
>
> This problem does not occur on my remote server, only on my home
> environment. I have home-network maintenance scripts that execute other
> scripts. If the executed script doesn't exit, the main scripts don't
> continue.
>
> I did a trace, and it turns out that the script is stopping on a futex
> wait.
>
do you have ubuntu home? Does other programs freez?
I had the same problem with ubuntu once... but rather than fixing it, I
decided to install fedora xD
It has something to do with multithreading, but i'm no expert in that. Some
suggest deactivating Assistive Technologies:
http://ubuntuforums.org/showthread.php?p=6144521
Greetings ;)
>
> Thanks,
> David W. Allor
>
--
Mailed by:
UnReAl4U - unreal4u
ICQ #: 54472056
www1: http://www.chw.net/
www2: http://unreal4u.com/
--000e0ce00a50966a6a047e08a7b3--