[CRIU] Re: [PATCH cr 02/10] pstree: simplify access to pid, real_pid, born_sid

Pavel Emelyanov xemul at parallels.com
Tue Jun 19 15:06:21 EDT 2012


On 06/19/2012 11:03 PM, Cyrill Gorcunov wrote:
> On Tue, Jun 19, 2012 at 10:26:50PM +0400, Pavel Emelyanov wrote:
>> On 06/19/2012 04:46 PM, Andrey Vagin wrote:
>>> I'm bored to write pi->pid.pid or pi->pid.read_pid. 
>>
>> Shit :( How about
>>
>> struct pid {
>> 	u32	r; /* real */
>> 	u32	v; /* virtual */
>> };
>>
>> s/->pid.pid/->pid.r/
>> s/->pid.real_pid/->pid.v/
>>
>> ?
> 
> Guys, can it be real/virt then? r|v is a way
> too short I think.

OK for me :)

> 	Cyrill
> 



More information about the CRIU mailing list