slirp4netns: Add EXIT as condition for trap
...otherwise, we don't terminate pasta on regular exit, i.e. on a read from the "exit" file descriptor. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
@@ -206,7 +206,7 @@ fi
|
||||
${PASTA} ${PASTA_OPTS} ${ns_spec} && \
|
||||
[ ${RFD} -ne 0 ] && echo "1" >&${RFD}
|
||||
|
||||
trap "kill $(cat ${PASTA_PID}); rm ${PASTA_PID}" INT TERM
|
||||
trap "kill $(cat ${PASTA_PID}); rm ${PASTA_PID}" INT TERM EXIT
|
||||
|
||||
cat << EOF
|
||||
sent tapfd=5 for ${ifname}
|
||||
|
Reference in New Issue
Block a user