Skip to content

Commit

Permalink
Merge branch 'master' of github.com:satoru-takeuchi/linux-in-practice
Browse files Browse the repository at this point in the history
  • Loading branch information
satoru-takeuchi committed Aug 4, 2018
2 parents cdcb7a2 + 6a7ce7a commit d288d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 05-memory-management/cow.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static void child_fn(char *p) {
printf("*** child ps info before memory access ***:\n");
fflush(stdout);
snprintf(command, COMMAND_SIZE,
"ps -o pid,comm,vsz,rss,min_flt,maj_flt | grep ^%d",
"ps -o pid,comm,vsz,rss,min_flt,maj_flt | grep '^ *%d'",
getpid());
system(command);
printf("*** free memory info before memory access ***:\n");
Expand Down

0 comments on commit d288d69

Please sign in to comment.