summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-02-28 16:24:06 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-02-28 16:24:08 +0100
commitc59080b463fbb6881638a588f2e73ed59e78ef26 (patch)
tree92af8f57a7d9dc58795d257a803487664ae084e6 /cmd
parentc132a4b7ff1dbe71b70302634fea7dd3b29f76ef (diff)
downloadpodman-c59080b463fbb6881638a588f2e73ed59e78ef26.tar.gz
podman-c59080b463fbb6881638a588f2e73ed59e78ef26.tar.bz2
podman-c59080b463fbb6881638a588f2e73ed59e78ef26.zip
build: specify input fd to buildah
It solves a tight loop with poll as stdin will be initialized to /dev/null in buildah/imagebuildah/StageExecutor.Run. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/build.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/build.go b/cmd/podman/build.go
index fa4689211..b8b315c68 100644
--- a/cmd/podman/build.go
+++ b/cmd/podman/build.go
@@ -352,6 +352,7 @@ func buildCmd(c *cliconfig.BuildValues) error {
ContextDirectory: contextDir,
DefaultMountsFilePath: c.GlobalFlags.DefaultMountsFile,
Err: stderr,
+ In: os.Stdin,
ForceRmIntermediateCtrs: c.ForceRm,
IIDFile: c.Iidfile,
Labels: c.Label,