diff --git a/tacc_stats/listend.py b/tacc_stats/listend.py index 7246f4f2..fa6e76ed 100755 --- a/tacc_stats/listend.py +++ b/tacc_stats/listend.py @@ -3,6 +3,7 @@ import os, sys import time import tacc_stats.cfg as cfg +from fcntl import flock, LOCK_EX, LOCK_NB def on_message(channel, method_frame, header_frame, body): if body[0] == '$': host = body.split('\n')[1].split()[1]