Re: [PATCH] Reserve N process to root

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Gustavo Chain <g@...>
Cc: <linux-kernel@...>
Date: Tuesday, October 9, 2007 - 9:49 pm

Gustavo Chain wrote:

Why?  (Sorry if I missed something.)

Shouldn't you test for error return before the pid is allocated?  
Otherwise, I think, you have to free it.  Thus:

(While I'm being picky, I don't like braces around a simple return, and 
neither, I note, does the style guide.)
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Reserve N process to root, Gustavo Chain, (Tue Oct 9, 7:48 pm)
Re: [PATCH] Reserve N process to root, David Newall, (Tue Oct 9, 9:49 pm)
Re: [PATCH] Reserve N process to root, Gustavo Chain, (Wed Oct 10, 1:15 am)
Re: [PATCH] Reserve N process to root, David Newall, (Wed Oct 10, 1:44 am)
Re: [PATCH] Reserve N process to root, Gustavo Chain, (Wed Oct 10, 9:46 am)
Re: [PATCH] Reserve N process to root, , (Wed Oct 10, 3:50 pm)
Re: [PATCH] Reserve N process to root, David Newall, (Wed Oct 10, 8:05 pm)
Re: [PATCH] Reserve N process to root, , (Wed Oct 10, 5:02 pm)
Re: [PATCH] Reserve N process to root, David Newall, (Wed Oct 10, 10:13 am)