summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorRover van der Noort <s.r.vandernoort@student.tudelft.nl>2022-03-03 13:52:32 +0100
committerrvandernoort <s.r.vandernoort@student.tudelft.nl>2022-03-04 00:57:35 +0100
commit2fb6a8daf6da54a7103473ce8a2fc2dab855b184 (patch)
tree0fa0609891ba4aad60fa6f8e105e73845f81fc27 /pkg
parented59b89a43c6d9f0bf691e536738fb8450bedfa9 (diff)
downloadpodman-2fb6a8daf6da54a7103473ce8a2fc2dab855b184.tar.gz
podman-2fb6a8daf6da54a7103473ce8a2fc2dab855b184.tar.bz2
podman-2fb6a8daf6da54a7103473ce8a2fc2dab855b184.zip
Add ExitCommandDelay configuration use in API exec handler
[NO NEW TESTS NEEDED] Signed-off-by: Rover van der Noort <s.r.vandernoort@student.tudelft.nl>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/handlers/compat/exec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/exec.go b/pkg/api/handlers/compat/exec.go
index c6f7e0318..def16d1b5 100644
--- a/pkg/api/handlers/compat/exec.go
+++ b/pkg/api/handlers/compat/exec.go
@@ -73,7 +73,7 @@ func ExecCreateHandler(w http.ResponseWriter, r *http.Request) {
// Run the exit command after 5 minutes, to mimic Docker's exec cleanup
// behavior.
- libpodConfig.ExitCommandDelay = 5 * 60
+ libpodConfig.ExitCommandDelay = runtimeConfig.Engine.ExitCommandDelay
sessID, err := ctr.ExecCreate(libpodConfig)
if err != nil {