mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 09:39:13 +00:00
test: Update shared mem test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
6a26e75aba
commit
c9c2bddcb8
1 changed files with 3 additions and 1 deletions
|
|
@ -38,14 +38,16 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
if (pid == 0) {
|
||||
int cnt = 0;
|
||||
while(1) {
|
||||
printf("%d: shmem '%s'\n", getpid(), (char *)map);
|
||||
sprintf(map, "shared-mem-%d", cnt++);
|
||||
sleep(5);
|
||||
}
|
||||
} else {
|
||||
while(1) {
|
||||
printf("%d: shmem '%s'\n", getpid(), (char *)map);
|
||||
sleep(5);
|
||||
sleep(3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue