From 2d1bb115c76035c2e2ad344e119cecece438a629 Mon Sep 17 00:00:00 2001 From: Richard Evans Date: Fri, 24 Mar 2017 14:17:46 -0500 Subject: [PATCH] Update listend.py added necessary fcntl functions --- tacc_stats/listend.py | 1 + 1 file changed, 1 insertion(+) 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]