Skip to content

Commit

Permalink
execv is not fork
Browse files Browse the repository at this point in the history
Last item in README.md is misleading: fork presumes creation of a new process, but `execv` does not create new process, it runs different image in the current process. Code does the sane thing, but documentation is incorrect.
  • Loading branch information
qm2k authored Jan 8, 2018
1 parent 5f5ba19 commit cb5ed74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ If current minute is different from now, it will:
* Write all contents and the newly injected minute to `temp`
* Rename(move) `temp` to `print_minute.c`
* Compile itself with `make`(`make -s build`)
* Fork itself with `execv` and run the program, and exiting gracefully.
* Run recompiled version within the same process.

# Run
```shell
Expand Down

0 comments on commit cb5ed74

Please sign in to comment.