From: Dohyung Kim Date: Tue, 16 May 2017 06:39:02 +0000 (+0900) Subject: support multiple mic execution at same time X-Git-Tag: staging-released-tools-18.01.7~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ba21499694fa0b66f2791c5e0053d77a11543e9;p=tools%2Fmic.git support multiple mic execution at same time do not unregister qemu emulator before image creation keep DEVICE_LOCKFILE to prevent a race condition Signed-off-by: Dohyung Kim Change-Id: I5714194ef6b48f80812b2f8b534d83fc27a663e4 --- diff --git a/mic/utils/fs_related.py b/mic/utils/fs_related.py index b583c12..0040fa2 100644 --- a/mic/utils/fs_related.py +++ b/mic/utils/fs_related.py @@ -1022,7 +1022,6 @@ def get_loop_device(losetupcmd, lofile): try: fcntl.flock(fp, fcntl.LOCK_UN) fp.close() - os.unlink(DEVICE_LOCKFILE) except: pass diff --git a/mic/utils/misc.py b/mic/utils/misc.py index e5f9bdf..03c508a 100755 --- a/mic/utils/misc.py +++ b/mic/utils/misc.py @@ -948,12 +948,6 @@ def setup_qemu_emulator(rootdir, arch): msger.info('Try to disable selinux') runner.show(["/usr/sbin/setenforce", "0"]) - # unregister it if it has been registered and is a dynamically-linked executable - if os.path.exists(node): - qemu_unregister_string = "-1\n" - with open(node, "w") as fd: - fd.write(qemu_unregister_string) - # register qemu emulator for interpreting other arch executable file if not os.path.exists(node): if arch == "aarch64":