Commit 6a743642 authored by Anael Beutot's avatar Anael Beutot Committed by Sébastien Luttringer
Browse files

Fix zombie when calculating uname tag

parent 8bfcf8aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -60,7 +60,7 @@ class CliHandler(RpcHandler):
        '''Return uname output'''
        '''Return uname output'''
        try:
        try:
            p = subprocess.Popen(["uname", "-a"], close_fds=True, shell=False, stdout=subprocess.PIPE)
            p = subprocess.Popen(["uname", "-a"], close_fds=True, shell=False, stdout=subprocess.PIPE)
            return  p.stdout.read().rstrip("\n")
            return  p.communicate()[0].rstrip("\n")
        except Exception:
        except Exception:
            return ""
            return ""