Re: [PATCH][cr-tests] Ensure pthread stack attributes are restored

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

 



Serge E. Hallyn [serue@xxxxxxxxxx] wrote:
| Quoting Sukadev Bhattiprolu (sukadev@xxxxxxxxxxxxxxxxxx):
| > +++ b/process-tree/run-pthread2.sh
| > @@ -0,0 +1,206 @@
| > +#!/bin/bash
| > +
| > +source ../common.sh
| > +
| > +#dir=`mktemp -p . -d -t cr_pthread2_XXXXXXX` || (echo "mktemp failed"; exit 1)
| > +dir=cr_pthread2
| 
| Note that this means we won't be able to run multiple instances in
| parallel.  Why did you need to do this?
| 
Grr, I meant to remove that after my testing.

Anyway, I am wondering if I should just extend the test case to memcmp()
the pthread_attr_t before and after C/R rather than individually testing
each attribute (like the stack addr/size in this case). I am working on
an update to this test and will fix this too.

Sukadev
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux