File 0792-Document-file-open-2-monitors-the-owner-process.patch of Package erlang
From 75aea5ac90ebd38a11b0740053618d493dbdb556 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Valim?= <jose.valim@plataformatec.com.br>
Date: Thu, 8 Aug 2019 11:46:12 +0200
Subject: [PATCH] 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).
---
lib/kernel/doc/src/file.xml | 7 +++----
1 file 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>
--
2.16.4