aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc/src
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-02-26 10:28:26 +0100
committerJohn Högberg <[email protected]>2018-02-26 12:16:59 +0100
commit6f120d4ab4fab2231f7475256bcc1eeac2bfe6e5 (patch)
treedc9122196136d411d89b620bd56f901878e224fb /lib/kernel/doc/src
parent7914843737e490c49b0918b67a093e68415b3beb (diff)
downloadotp-6f120d4ab4fab2231f7475256bcc1eeac2bfe6e5.tar.gz
otp-6f120d4ab4fab2231f7475256bcc1eeac2bfe6e5.tar.bz2
otp-6f120d4ab4fab2231f7475256bcc1eeac2bfe6e5.zip
Allow opening device files and FIFOs with file:open/2
To the best of our knowledge this was introduced since file operations on device files/FIFO:s could hang the emulator forever back when the emulator was single-threaded and lacked IO threads; a read operation could block all progress preventing the write operation it waited for from occurring. Granted, this could still happen through starving all dirty IO schedulers, but the same issue can arise with NFS files which we've always allowed. Removing this restriction also lets us remove a stat(2) call that was added to specifically allow `/dev/null`.
Diffstat (limited to 'lib/kernel/doc/src')
-rw-r--r--lib/kernel/doc/src/file.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml
index 8477b0e148..1b72769ce3 100644
--- a/lib/kernel/doc/src/file.xml
+++ b/lib/kernel/doc/src/file.xml
@@ -981,8 +981,7 @@ f.txt: {person, "kalle", 25}.
</item>
<tag><c>eisdir</c></tag>
<item>
- <p>The named file is not a regular file. It can be a
- directory, a FIFO, or a device.</p>
+ <p>The named file is a directory.</p>
</item>
<tag><c>enotdir</c></tag>
<item>