Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "pcntl_fork(): Error 12" mean?

I've searched until I was blue in the face and cannot find the answer to this question.

Where I can find a table listing the meanings of all the error codes for pcntl_fork()? Or even the C fork() function, for that matter.

like image 859
Jonathon Hill Avatar asked Mar 10 '10 21:03

Jonathon Hill


1 Answers

It seems the 12 error code indicates there was not enough memory to fork.

See this post, for instance (quoting) :

I've had this when
(1) I've run out of memory, and
(2) when the pid table is full. In the latter case a rogue program was constantly forked child processes & not picking-up the message when they die. The result was >200 zombies.

like image 66
Pascal MARTIN Avatar answered Oct 25 '22 21:10

Pascal MARTIN