From 75aea5ac90ebd38a11b0740053618d493dbdb556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 8 Aug 2019 11:46:12 +0200 Subject: 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}.

IoDevice 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 IoDevice 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 IoDevice returned from this call can be used as an argument to the I/O functions (see io(3)).

-- cgit v1.2.3