File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,8 @@ defmodule Supervisor do
212
212
* `:permanent` - the child process is always restarted.
213
213
214
214
* `:temporary` - the child process is never restarted, regardless
215
- of the supervision strategy.
215
+ of the supervision strategy: any termination (even abnormal) is
216
+ considered successful.
216
217
217
218
* `:transient` - the child process is restarted only if it
218
219
terminates abnormally, i.e., with an exit reason other than
@@ -444,6 +445,9 @@ defmodule Supervisor do
444
445
the child processes, i.e., the child processes after the terminated
445
446
one in start order, are terminated. Then the terminated child
446
447
process and the rest of the child processes are restarted.
448
+
449
+ In the above, process termination refers to unsuccessful termination, which
450
+ is determined by the `:restart` option.
447
451
448
452
There is also a deprecated strategy called `:simple_one_for_one` which
449
453
has been replaced by the `DynamicSupervisor`. The `:simple_one_for_one`
You can’t perform that action at this time.
0 commit comments