diff options
author | José Valim <[email protected]> | 2019-08-08 11:46:12 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2019-08-08 11:46:12 +0200 |
commit | 75aea5ac90ebd38a11b0740053618d493dbdb556 (patch) | |
tree | dc056b0f0fc6877479c934f9cce763b7726e42cf /lib | |
parent | 51a1255bc9a987e434f0f600f895423b546d6700 (diff) | |
download | otp-75aea5ac90ebd38a11b0740053618d493dbdb556.tar.gz otp-75aea5ac90ebd38a11b0740053618d493dbdb556.tar.bz2 otp-75aea5ac90ebd38a11b0740053618d493dbdb556.zip |
Document file:open/2 monitors the owner process
The documentation states that file:open/2 is linked to
the owner process but that's not true. A monitor is used
instead (it has been so for a while).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kernel/doc/src/file.xml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml index d923207f9f..2c09c84b25 100644 --- a/lib/kernel/doc/src/file.xml +++ b/lib/kernel/doc/src/file.xml @@ -957,10 +957,9 @@ f.txt: {person, "kalle", 25}. </item> </taglist> <p><c><anno>IoDevice</anno></c> is really the pid of the process that - handles the file. This process is linked to the process - that originally opened the file. If any process to which - the <c><anno>IoDevice</anno></c> is linked terminates, the file is - closed and the process itself is terminated. + handles the file. This process monitors the process that originally + opened the file (the owner process). If the owner process terminates, + the file is closed and the process itself terminates too. An <c><anno>IoDevice</anno></c> returned from this call can be used as an argument to the I/O functions (see <seealso marker="stdlib:io"><c>io(3)</c></seealso>).</p> |