app/pdump: exit with primary process
authorSuanming Mou <mousuanming@huawei.com>
Wed, 15 May 2019 05:10:39 +0000 (05:10 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 Jul 2019 22:26:17 +0000 (00:26 +0200)
commita99a311ba101ea7ebde256732bf65f512882d2b6
treee9caa215a309d4036ab7097e08b634b9a59d43b9
parent0c4d3e4268576ce31c11e6d09d819b43592c1323
app/pdump: exit with primary process

The pdump tool works as the secondary process. When the primary process
exits and the residual secondary process keeps running, it will make the
primary process can't start up again. Since the ex-fbarry files are still
attached by the secondary process pdump, the 'new' primary process can't
get these files locked.

The patch is to set up an alarm which runs every 0.5s periodically
to monitor the primary process in the pdump. Once the primary exits,
so will the pdump.

Signed-off-by: Suanming Mou <mousuanming@huawei.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
app/pdump/main.c
doc/guides/rel_notes/release_19_08.rst
doc/guides/tools/pdump.rst