Re: PHP script won't run in the background
| From: | richard gray | Date: | Wed, 30 Nov 2011 12:01:48 +0000 |
| Subject: | Re: PHP script won't run in the background | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315891@lists.php.net to get a copy of this message | ||
On 23/11/2011 18:49, Alain Williams wrote:
On Wed, Nov 23, 2011 at 06:14:07PM +0100, richard gray wrote:[rich@LeMans] (/Web/scripts)> gdb --pid=3294 GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Aug 8 20:32:45 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin". /Web/scripts/3294: No such file or directory Attaching to process 3294. Reading symbols for shared libraries . done Reading symbols for shared libraries ................................................................................................................................................ done Reading symbols for shared libraries + done 0x00007fff8f8ac7ee in __ioctl () (gdb) where #0 0x00007fff8f8ac7ee in __ioctl () #1 0x00007fff8f8ac1fe in ioctl () #2 0x00007fff910a6b1c in tcsetattr () #3 0x000000010ab05df7 in tty_end () #4 0x000000010ab05c39 in tty_init () #5 0x000000010aaf7261 in el_init () #6 0x000000010aafeb8e in rl_initialize () #7 0x000000010a3ef39a in zm_startup_readline () #8 0x000000010a37a1c8 in zend_startup_module_ex () #9 0x000000010a38166b in zend_hash_apply () #10 0x000000010a37d3dd in zend_startup_modules () #11 0x000000010a3287bf in php_module_startup () #12 0x000000010a3ef637 in php_cli_startup () #13 0x000000010a3efff8 in main ()Reading symbols for shared libraries + done 0x0000000101d057ee in __ioctl () Any clues? To me it looks like PHP cli is trying to do some I/O but I'm just a dumb developer... :)ioctl on a tty is typically used to set it into single character at a time mode (remove stty's icanon). It could have decided that since it is a tty then that should be set. You need a bit more info, get a backtrace with 'where'. Thanks for the response Alain - below is the output:-