You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
oabrivard 230de24e7c Added exercises source code 2 years ago
..
README.md Added exercises source code 2 years ago
main.go Added exercises source code 2 years ago
mockprocess.go Added exercises source code 2 years ago

README.md

Graceful SIGINT killing

Given is a mock process which runs indefinitely and blocks the program. Right now the only way to stop the program is to send a SIGINT (Ctrl-C). Killing a process like that is not graceful, so we want to try to gracefully stop the process first.

Change the program to do the following:

  1. On SIGINT try to gracefully stop the process using proc.Stop()
  2. If SIGINT is called again, just kill the program (last resort)