Commit c9c2bddc authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

test: Update shared mem test

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 6a26e75a
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment