Skip to content

Commit 3b166cd

Browse files
committed
Merge pull request #449 from hqhq/hq_enrich_runtime_linux
Add dev symbolic links in runtime_linux.md
2 parents d8f8583 + e5be0f8 commit 3b166cd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

runtime-linux.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
# Linux Runtime
22

33
## File descriptors
4+
45
By default, only the `stdin`, `stdout` and `stderr` file descriptors are kept open for the application by the runtime.
6+
The runtime MAY pass additional file descriptors to the application to support features such as [socket activation](http://0pointer.de/blog/projects/socket-activated-containers.html).
7+
Some of the file descriptors MAY be redirected to `/dev/null` even though they are open.
8+
9+
## Dev symbolic links
510

6-
The runtime may pass additional file descriptors to the application to support features such as [socket activation](http://0pointer.de/blog/projects/socket-activated-containers.html).
11+
After the container has `/proc` mounted, the following standard symlinks MUST be setup within `/dev/` for the io.
712

8-
Some of the file descriptors may be redirected to `/dev/null` even though they are open.
13+
| Source | Destination |
14+
| --------------- | ----------- |
15+
| /proc/self/fd | /dev/fd |
16+
| /proc/self/fd/0 | /dev/stdin |
17+
| /proc/self/fd/1 | /dev/stdout |
18+
| /proc/self/fd/2 | /dev/stderr |

0 commit comments

Comments
 (0)