Skip to content

Commit c665358

Browse files
README: a program is started by its absolute name, and the duplicate enters the working directory (#25)
The paragraph predated openkal 0.11, when the base directory and the working directory were one. Documentation only; no release. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
1 parent 3098999 commit c665358

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,14 @@ nothing ever wakes. That is not a substitute for a sleep; it is a sleep,
118118
expressed with the operation this system has.
119119

120120
**There is no kernel call that starts a program relative to a directory.** The
121-
directory is entered by the duplicate before it replaces itself — a duplicate
122-
that exists for the length of two calls and is not a resource the caller
121+
program's name is made absolute from the path of the base directory
122+
(`F_GETPATH`) before the program is duplicated, and the duplicate enters the
123+
working directory the caller named before it replaces itself --- a duplicate
124+
that exists for the length of a few calls and is not a resource the caller
123125
receives, which is exactly what openkal declines to offer as an operation of its
124126
own. The caller's working directory is untouched, which is the property the
125-
interface requires.
127+
interface requires. Because the program is started by its absolute name, no
128+
descriptor has to survive the start for a program that needs an interpreter.
126129

127130
**A started program receives the three streams and its grants, and nothing
128131
else.** Clause 7.13. Every source is first moved above the positions being

0 commit comments

Comments
 (0)