|
@@ -1005,6 +1005,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
|
|
* triggers too late. This doesn't hurt, the check is only there
|
|
* triggers too late. This doesn't hurt, the check is only there
|
|
* to stop root fork bombs.
|
|
* to stop root fork bombs.
|
|
*/
|
|
*/
|
|
|
|
+ retval = -EAGAIN;
|
|
if (nr_threads >= max_threads)
|
|
if (nr_threads >= max_threads)
|
|
goto bad_fork_cleanup_count;
|
|
goto bad_fork_cleanup_count;
|
|
|
|
|