Skip to main content

Module engine_exec

Module engine_exec 

Source
Expand description

The subprocesses the engine starts on a session’s behalf — its own git and helpers such as pdftotext — and the one way it starts them: through that session’s ExecProviders.

Going through the session’s exec.process is what puts them where the session’s commands are: on the machine (or remote) the host chose, under the same sandbox.env, in a session of their own with no controlling terminal, and stopped as a whole group when they time out. In a session whose commands the OS sandbox confines they are confined too, so whatever a repository a confined command configured makes git run is held to the same roots.

Structs§

EngineExec
The engine’s subprocesses for one session.
Head
What a repository’s HEAD says, read as a file rather than asked of git.

Enums§

Admission
Whether a git may start, decided before anything does.
Confinement
Whether the engine’s subprocesses run in the session’s sandbox.
EngineExecError
GitAccess
What a git the engine runs may write.

Constants§

ENGINE_GIT_OPTIONS
Options every git the engine runs itself puts before its subcommand.

Functions§

admit_git
The one decision point for every git the engine starts.
read_head
The HEAD of the repository dir is in: the first .git in dir or above it, a directory or a file whose gitdir: line names one. None where there is no repository or its HEAD cannot be read.