Commit e66efb11 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

test: Add printing header

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 8650847b
...@@ -9,6 +9,8 @@ int main(int argc, char *argv[]) ...@@ -9,6 +9,8 @@ int main(int argc, char *argv[])
{ {
int counter = 0; int counter = 0;
printf("%s pid %d\n", argv[0], getpid());
while (1) { while (1) {
printf("Pid: %10d Counter: %10d\n", printf("Pid: %10d Counter: %10d\n",
getpid(), counter++); getpid(), counter++);
......
...@@ -13,6 +13,8 @@ int main(int argc, char *argv[]) ...@@ -13,6 +13,8 @@ int main(int argc, char *argv[])
const int limit = 10; const int limit = 10;
int counter, fd, rnd; int counter, fd, rnd;
printf("%s pid %d\n", argv[0], getpid());
unlink((char *)fname_rnd); unlink((char *)fname_rnd);
fd = open(fname_rnd, O_RDWR | O_CREAT | O_EXCL, 0644); fd = open(fname_rnd, O_RDWR | O_CREAT | O_EXCL, 0644);
......
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