From:             donny at intercosmos dot com
Operating system: Linux 2.6.2 /Fedora Core 1, 
PHP version:      4.3.4
PHP Bug Type:     CGI related
Bug description:  PHP Warning:  system(): Unable to fork

Description:
------------
We started using a new program that spawns additional CLI php scripts
recently.  And today, we started getting stuff like this:



PHP Warning:  system(): Unable to fork [/usr/bin/php
/www/htdocs/onetime/spawn_domain.php 'businesslicensing.com' > /dev/null
&] in /www/htdocs/onetime/spawn_domain_parent.php on line 39



Now if I wait a few minutes, and restart the parent it will normally go on
about it's business.  But then after a while it will all of a sudden no
longer be able to spawn new children.



All of the other bugs mentioned like this are based on Windows, but this
is a Linux box.

Reproduce code:
---------------
                system("/usr/bin/php /www/htdocs/onetime/spawn_domain.php '$db[domain]'
> /dev/null &");



Expected result:
----------------
It should spawn a child CLI program and run.

Actual result:
--------------
It runs the code mentioned above.

-- 
Edit bug report at http://bugs.php.net/?id=27486&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27486&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27486&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27486&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27486&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27486&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27486&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27486&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27486&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27486&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27486&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27486&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27486&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27486&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27486&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27486&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27486&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27486&r=float

Reply via email to