Re: [PHP] Php-cli, scripts freeze on exit

2010-01-25 Thread Camilo Sperberg
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/


Re: [PHP] Php-cli, scripts freeze on exit

2010-01-24 Thread shiplu
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



[PHP] Php-cli, scripts freeze on exit

2010-01-24 Thread David W. Allor
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 



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