Skip to content

Commit

Permalink
Book: Expand note on cleanup/graceful shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
killercup committed Dec 8, 2018
1 parent df31331 commit 61d9dde
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/in-depth/signals.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,23 @@ as well as how you can react to them.
<aside>

**Note:**
If your applications does not require special cleanup,
If your applications does not need to gracefully shutdown,
the default handling is fine
(i.e. exit immediately and let the OS cleanup).
(i.e. exit immediately
and let the OS cleanup resources like open file handles).
In that case:
No need to do what this chapter tells you!
For applications that need to clean up after themselves,
for example to close network connections,

However,
for applications that need to clean up after themselves,
this chapter is very relevant!
For example,
if your application needs to
properly close network connections
(saying "good bye" to the processes at the other end),
remove temporary files,
or reset system settings,
this chapter is however very relevant!
read on.

</aside>

Expand Down

0 comments on commit 61d9dde

Please sign in to comment.