Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 250843 | Differences between
and this patch

Collapse All | Expand All

(-)Modules/posixmodule.c.ori (-1 / +7 lines)
Lines 3467-3473 Link Here
3467
static PyObject *
3467
static PyObject *
3468
posix_fork(PyObject *self, PyObject *noargs)
3468
posix_fork(PyObject *self, PyObject *noargs)
3469
{
3469
{
3470
	int pid = fork();
3470
        unsigned int forksleep = 1;
3471
        int pid;
3472
        while ((pid = fork ()) < 0 && errno == EAGAIN && forksleep < 32)
3473
        {
3474
                if (sleep (forksleep)) break; /* break on signals, e.g. ^C */
3475
                forksleep <<= 1;
3476
        }
3471
	if (pid == -1)
3477
	if (pid == -1)
3472
		return posix_error();
3478
		return posix_error();
3473
	if (pid == 0)
3479
	if (pid == 0)

Return to bug 250843