commit | 7b2c114a8049196aa52281f55929cf51c363cc77 | [log] [tgz] |
---|---|---|
author | xingfeng2510 <xingfeng25100@163.com> | Thu Mar 24 10:51:26 2022 +0800 |
committer | yonghong-song <ys114321@gmail.com> | Wed Mar 23 23:19:06 2022 -0700 |
tree | 57e4de56bf9f2036b30240e9ee7700fba263744d | |
parent | 43fec8b8eddaf3dd8805ff0cfcf4bd031db60f38 [diff] [blame] |
tools: Flush stdout explicitly in event loop
diff --git a/tools/mountsnoop.py b/tools/mountsnoop.py index a6d7ece..d186602 100755 --- a/tools/mountsnoop.py +++ b/tools/mountsnoop.py
@@ -420,6 +420,7 @@ print('{:16} {:<7} {:<7} {:<11} {}'.format( syscall['comm'].decode('utf-8', 'replace'), syscall['tgid'], syscall['pid'], syscall['mnt_ns'], call)) + sys.stdout.flush() except KeyError: # This might happen if we lost an event. pass