diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2018-07-25 09:10:32 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-07-25 09:11:45 -0700 |
commit | 1129b35c92034d04ed22cf69e270ed9c034069d7 (patch) | |
tree | c632bcb8969ee49fc31ab7148883cbe17712fd62 /runsc/boot/fs.go | |
parent | 32aa0f5465832c437a9de83c1c1a04b615d68122 (diff) |
runsc: Fix "exec" command when called without --pid-file.
When "exec" command is called without the "--detach" flag, we spawn a second
"exec" command and wait for that one to start. We use the pid file passed in
--pid-file to detect when this second command has started running.
However if "exec" is called with no --pid-file flag, this system breaks down,
as we don't have a pid file to wait for.
This CL ensures that the second instance of the "exec" command always writes a
pid-file, so the wait is successful.
PiperOrigin-RevId: 206002403
Change-Id: If9f2be31eb6e831734b1b833f25054ec71ab94a6
Diffstat (limited to 'runsc/boot/fs.go')
0 files changed, 0 insertions, 0 deletions