Inject Execution Debug Message

for measuring the performance of the until loop of the stderr connection.
This commit is contained in:
Maximilian Paß
2023-11-23 15:25:23 +01:00
parent cb08787c7d
commit 04a2d0ff3b

View File

@ -696,6 +696,7 @@ func prepareCommandTTY(command string, currentNanoTime int64, privilegedExecutio
// Take the command to be executed and wrap it to redirect stderr.
stderrFifoPath := stderrFifo(currentNanoTime)
command = fmt.Sprintf(stderrWrapperCommandFormat, stderrFifoPath, command, stderrFifoPath)
command = injectStartDebugMessage(command, 0, 1)
command = setUserCommand(command, privilegedExecution)
command = unsetEnvironmentVariables(command)