On 03/09/2012 01:48 PM, Caspar Zhang wrote:

> On 03/09/2012 01:28 PM, Caspar Zhang wrote:
>>
>> in negative case:
>>
>>     QUICK_TEST(sched_getaffinity(getpid()+1, len, mask));
>>
>> sometimes getpid()+1 will exist if there're other processes running.
>> This patch uses a different way to make sure the required pid doesn't
>> exist by forking a child and terminating it. The pid of the terminated
>> child will not be used for a short time and it's enough for the test to
>> continue.
>>
>> Signed-off-by: Caspar Zhang <[email protected]>
>> ---
>>  .../sched_getaffinity/sched_getaffinity01.c        |   18 ++++++++++++++++--
>>  1 files changed, 16 insertions(+), 2 deletions(-)
>>
> 
> Hmmm, I took a look at commit c8319c8 and found that Garrett added a
> similar non-exist-pid case already. I guess we can simply remove the one
> I tried to fix...


Yes, agree, please remove this one.

Thanks,
Wanlong Gao

> 
> Thanks,
> Caspar
> 
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing 
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> 



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to