Skip to content

Commit

Permalink
Update readme now that we"re forking
Browse files Browse the repository at this point in the history
This program is now forking instead of using exit 1 to get the bootstraper to re-run the program.
  • Loading branch information
Lilja authored Jan 6, 2018
1 parent 502595d commit ec4e0b0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ 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`)
* Exit with return code `1` to tell bootstraper(`bootstrap.sh`) that the program has changed

Then after that, the bootstraper script will re-run the program and the current minute will be displayed again.
* Fork itself with `execv` and run the program, and exiting gracefully.

# Run
```shell
make run
```

0 comments on commit ec4e0b0

Please sign in to comment.