aboutsummaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-06-13 13:55:42 +0200
committerGitHub <[email protected]>2018-06-13 13:55:42 +0200
commitd0252a3cef9330eb0d8cc252cce79f6f8df26e03 (patch)
treea7f75ae939076a1e54213b3db883fd3478097548 /system
parente754f23ead59f8592f3a1cbb66e22cfdba73517d (diff)
parentb0900fc2f7daab1c77dd8878c39ab24591bb076b (diff)
downloadotp-d0252a3cef9330eb0d8cc252cce79f6f8df26e03.tar.gz
otp-d0252a3cef9330eb0d8cc252cce79f6f8df26e03.tar.bz2
otp-d0252a3cef9330eb0d8cc252cce79f6f8df26e03.zip
Merge pull request #1771 from fxn/master
Explain why the AM becomes group leader
Diffstat (limited to 'system')
-rw-r--r--system/doc/design_principles/applications.xml10
1 files changed, 7 insertions, 3 deletions
diff --git a/system/doc/design_principles/applications.xml b/system/doc/design_principles/applications.xml
index c673fde07e..6e5a2ce6cf 100644
--- a/system/doc/design_principles/applications.xml
+++ b/system/doc/design_principles/applications.xml
@@ -363,9 +363,13 @@ ok
application are running.</p>
<marker id="application_master"></marker>
<p>The application controller then creates an
- <em>application master</em> for the application. The application master
- is the group leader of all the processes in the application.
- The application master starts the application by calling
+ <em>application master</em> for the application. The application
+ master becomes the group leader of all the processes in the
+ application. I/O is forwarded to the previous group leader,
+ though, this is just a way to identify processes that belong to
+ the application. Used for example to find itself from any process,
+ or, reciprocally, to kill them all when it terminates.</p>
+ <p>The application master starts the application by calling
the application callback function <c>start/2</c> in the module,
and with the start argument, defined by the <c>mod</c> key in
the <c>.app</c> file.</p>