Prev: tty: add EXTPROC support for LINEMODE
Next: [PATCH 1/1] pids: alloc_pidmap: remove the unnecessary boundary checks
From: Oleg Nesterov on 15 Jun 2010 14:40 On 06/11, Salman wrote: > > A program that repeatedly forks and waits is susceptible to having the > same pid repeated, I agree this patch should fix this. But the kernel still can use the same pid twice in a row, I am wondering if there a simple solution to prevent this. Probably not, and this case is unlikely. While we are here, and given that many reviewers recently inspected alloc_pidmap(), probably someone can explain the mysterious checks in do/while loop ? See the patch I am going to send, it is on top on Salman's fix but doesn't really depend on it. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |