Re: [PATCH] pid_max hang again...

Manfred Spraul (manfred@colorfullife.com)
Fri, 06 Sep 2002 23:06:48 +0200


Searching for a free pid value and inserting the thread into the task
list should be atomic, otherwise the same pid value could be given to 2
threads.

do_fork runs without the BLK, you might have to search for the pid
within the write_lock_irq(&tasklist_lock) block.

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/