tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Syscall kill(2) called for a zombie process should return 0



On 18/07/2012 11:46, Roger Pau Monne wrote:
> Please review the attached patch.

+                       if (p != NULL && P_ZOMBIE(p)) {
+                               mutex_exit(proc_lock);
+                               return 0;
+                       }
                        mutex_exit(proc_lock);
                        return ESRCH;

This is a general question, not necessarily specific to the patch.
Which is more costly? Two function calls as above, or storing the return
value in a variable to return with just one function call to mutex_exit?

Thanks

Roy


Home | Main Index | Thread Index | Old Index