mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
test/rpc: clean up stale pidfile and socket before starting service
Remove leftover pidfile and criu_service.socket at the start of the run target. If these files exist from a previous interrupted run, the service fails to start and read.py hangs forever waiting on the status fifo. Acked-by: Andrei Vagin <avagin@gmail.com> Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
ab28d44661
commit
87951452f2
2 changed files with 4 additions and 2 deletions
|
|
@ -12,6 +12,8 @@ run: all
|
|||
chmod a+rwx build
|
||||
chmod a+rwx build/{imgs_errno,imgs_ps,imgs_c,imgs_loop,imgs_py}
|
||||
rm -f build/status
|
||||
rm -f build/pidfile
|
||||
rm -f build/criu_service.socket
|
||||
rm -f build/_marker_*
|
||||
@# Create all log files to be accessible for anybody
|
||||
@# so that they can be displayed by any user.
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ function test_ps {
|
|||
|
||||
function test_ps_addr {
|
||||
title_print "Run page server address test"
|
||||
# Reuse the dump images from test_c — the page server in
|
||||
# lazy-pages mode needs pstree.img and inventory.img.
|
||||
# Reuse dump images from test_c (page server needs pstree.img
|
||||
# and inventory.img).
|
||||
setsid ./test-ps-addr build/criu_service.socket build/imgs_c < /dev/null &>> build/output_ps_addr
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue