mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
test rpc: remove unnecessary import, close fd
Signed-off-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
0a859275ef
commit
35fbc373a9
1 changed files with 2 additions and 3 deletions
|
|
@ -5,12 +5,11 @@
|
|||
# but the bash version on Ubuntu has probably the following bug:
|
||||
# https://lists.gnu.org/archive/html/bug-bash/2017-07/msg00039.html
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
f=open(sys.argv[1])
|
||||
f = open(sys.argv[1])
|
||||
r = f.read(1)
|
||||
f.close()
|
||||
|
||||
if r == '\0':
|
||||
sys.exit(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue