Implement the "wait" checkpoint action.
commite7cd377f7801d42aa8e07addff93d2150666c237
authorSergey Poznyakoff <gray@gnu.org>
Fri, 28 Dec 2018 11:17:44 +0000 (28 13:17 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Fri, 28 Dec 2018 11:27:02 +0000 (28 13:27 +0200)
treee2a7c118bde14224e96e604e925d65448ab96fc3
parentc15c42ccd1e2377945fd0414eca1a49294bff454
Implement the "wait" checkpoint action.

This action instructs tar to pause until given signal is delivered.
The newer genfile tool uses this action for communication between
genfile and tar in exec mode. This eliminates race conitions and
speeds up the tests based on exec mode.

* doc/tar.texi: Document changes.
* paxutils: Upgrade.
* src/checkpoint.c: Implement the wait action.
* src/common.h (decode_signal): New proto.
* src/tar.c (decode_signal): New function.
(set_stat_signal): Rewrite.
* tests/dirrem01.at: Adjust genfile and tar command line arguments
to use the new feature.
* tests/dirrem02.at: Likewise.
* tests/filerem01.at: Likewise.
* tests/filerem02.at: Likewise.
* tests/grow.at: Likewise.
* tests/sptrcreat.at: Likewise.
* tests/sptrdiff00.at: Likewise.
* tests/sptrdiff01.at: Likewise.
* tests/truncate.at: Likewise.
14 files changed:
doc/tar.texi
paxutils
src/checkpoint.c
src/common.h
src/tar.c
tests/dirrem01.at
tests/dirrem02.at
tests/filerem01.at
tests/filerem02.at
tests/grow.at
tests/sptrcreat.at
tests/sptrdiff00.at
tests/sptrdiff01.at
tests/truncate.at