spiegel_podman/cmd/podman/containers
Matthew Heon 6b9e9610d8 Enable cleanup processes for detached exec
The cleanup command creation logic is made public as part of this
and wired such that we can call it both within SpecGen (to make
container exit commands) and from the ABI detached exec handler.
Exit commands are presently only used for detached exec, but
theoretically could be turned on for all exec sessions if we
wanted (I'm declining to do this because of potential overhead).

I also forgot to copy the exit command from the exec config into
the ExecOptions struct used by the OCI runtime, so it was not
being added.

There are also two significant bugfixes for exec in here. One is
for updating the status of running exec sessions - this was
always failing as I had coded it to remove the exit file *before*
reading it, instead of after (oops). The second was that removing
a running exec session would always fail because I inverted the
check to see if it was running.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-05-20 16:11:05 -04:00
..
attach.go v2 podman remote attach, start, and run 2020-05-15 10:09:45 -05:00
checkpoint.go Fix checkpoint --leave-running 2020-05-14 14:29:04 +02:00
cleanup.go Enable cleanup processes for detached exec 2020-05-20 16:11:05 -04:00
commit.go fix commands without input 2020-04-30 15:10:49 -05:00
container.go V2 enable ps tests 2020-04-29 15:51:37 -07:00
cp.go v2 podman unshare command 2020-05-08 13:28:11 -05:00
create.go rootless: do not set pids limits with cgroupfs 2020-05-12 11:00:54 +02:00
diff.go V2 enable ps tests 2020-04-29 15:51:37 -07:00
exec.go Add CLI frontend for detached exec 2020-05-20 16:11:05 -04:00
exists.go system tests must pass 2020-04-28 15:17:00 -05:00
export.go fix commands without input 2020-04-30 15:10:49 -05:00
init.go v2 podman unshare command 2020-05-08 13:28:11 -05:00
inspect.go enable inspect tests 2020-04-29 07:25:31 +02:00
kill.go fix commands without input 2020-04-30 15:10:49 -05:00
list.go V2 enable ps tests 2020-04-29 15:51:37 -07:00
logs.go Fix errors found when comparing podman v1 --help versus V2 2020-05-04 14:16:34 -04:00
mount.go v2 podman unshare command 2020-05-08 13:28:11 -05:00
pause.go podmanv2 container subcommands 2020-04-21 08:39:54 -05:00
port.go add port to podman remote command 2020-05-11 14:09:41 -05:00
prune.go Fix errors found when comparing podman v1 --help versus V2 2020-05-04 14:16:34 -04:00
ps.go Merge pull request #6080 from baude/v2stats 2020-05-05 17:29:56 +02:00
restart.go podmanv2 container subcommands 2020-04-21 08:39:54 -05:00
restore.go Podman V2 birth 2020-04-16 15:53:58 -05:00
rm.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
run.go v2 podman remote attach, start, and run 2020-05-15 10:09:45 -05:00
runlabel.go container runlabel 2020-05-07 16:18:39 +02:00
start.go v2 podman remote attach, start, and run 2020-05-15 10:09:45 -05:00
stats.go fix pod stats flake 2020-05-08 09:05:37 -05:00
stop.go fix commands without input 2020-04-30 15:10:49 -05:00
top.go podmanv2 container subcommands 2020-04-21 08:39:54 -05:00
unmount.go enable rootless mount tests 2020-05-11 13:03:09 +02:00
unpause.go BATS help test: check usage string 2020-05-05 07:19:58 -06:00
utils.go Podman V2 birth 2020-04-16 15:53:58 -05:00
wait.go fix commands without input 2020-04-30 15:10:49 -05:00