1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

Apply suggestions from code review

Docs cleanup

Co-authored-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Ricardo Matsui <ricmatsui@gmail.com>
This commit is contained in:
Ricardo Matsui
2024-12-01 18:18:23 -08:00
committed by GitHub
parent 08476d1bed
commit d922d36738
2 changed files with 3 additions and 2 deletions

View File

@@ -1053,10 +1053,10 @@ written to disk.
your password:
If you want process signals to be sent to the command, for example if you are
running ``exec-env`` to launch a server and your server handles sigterm, then the
running ``exec-env`` to launch a server and your server handles SIGTERM, then the
``--same-process`` flag can be used to instruct ``sops`` to start your command in
the same process instead of a child process. This uses the ``execve`` system call
and is supported on unix-like systems.
and is supported on Unix-like systems.
If the command you want to run only operates on files, you can use ``exec-file``
instead. By default, SOPS will use a FIFO to pass the contents of the

View File

@@ -140,6 +140,7 @@ func ExecWithEnv(opts ExecOpts) error {
log.Fatal("background is not supported for same-process")
}
// Note that the call does NOT return, unless an error happens.
return ExecSyscall(opts.Command, env)
}