Module Import alias identifier Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str keyword Num If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad For NameStore Call NameLoad NameLoad NameLoad body For NameStore Call AttributeLoad NameLoad attr Str body If CompareIn BinOpAdd Str Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Return TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Assign TupleStore NameStore NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad If CompareLt NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return Call NameLoad NameLoad NameLoad BinOpSub NameLoad Num Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num
N/A N/A ufora.core.SubprocessRunner SubprocessRunner N/A sys N/A re N/A os N/A logging N/A traceback pidAndProcessNameHoldingPorts N/A N/A portStart portStop N/A N/A N/A output N/A N/A SubprocessRunner callAndReturnOutput N/A /bin/bash -c netstat -tulpn 2> /dev/null timeout 5 N/A N/A output None N/A N/A None N/A outputLines N/A N/A output split N/A allOutputLinesMatching N/A N/A port N/A range portStart portStop N/A N/A line N/A N/A output split N/A N/A N/A N/A : N/A str port line N/A N/A N/A N/A allOutputLinesMatching append line N/A N/A allOutputLinesMatching N/A N/A None N/A line allOutputLinesMatching N/A N/A match N/A N/A re match .*LISTEN *([0-9]+)/(.*) line N/A N/A match None N/A N/A N/A N/A logging warn Found process: %s line N/A pidToKill N/A int N/A N/A match group 1 N/A processName N/A N/A match group 2 N/A N/A pidToKill processName N/A None N/A killProcessGroupHoldingPorts N/A N/A portStart portStop retries N/A 5 N/A N/A toKillOrNone N/A pidAndProcessNameHoldingPorts portStart portStop N/A N/A toKillOrNone None N/A N/A False N/A N/A pidToKill processName toKillOrNone N/A N/A N/A pidGroupToKill N/A N/A os getpgid pidToKill N/A N/A N/A logging warn Killing process group pgid=%s containing %s at pid=%s pidGroupToKill processName pidToKill N/A N/A N/A os killpg pidGroupToKill 9 N/A N/A N/A OSError N/A N/A N/A N/A logging warn Failed to kill process holding port: %s.
%s toKillOrNone N/A N/A traceback format_exc N/A toKillOrNone2 N/A pidAndProcessNameHoldingPorts portStart portStop N/A N/A toKillOrNone2 None N/A N/A N/A N/A logging error Failed to free the port range %s-%s. It was held as %s, now as %s portStart portStop toKillOrNone toKillOrNone2 N/A N/A retries 1 N/A N/A N/A UserWarning Failed to clear the port N/A N/A N/A logging info Trying to kill process group holding port range %s-%s again portStart portStop N/A N/A killProcessGroupHoldingPorts portStart portStop N/A retries 1 N/A True N/A N/A N/A __name__ __main__ N/A N/A N/A killProcessGroupHoldingPorts N/A N/A sys argv N/A 1 N/A N/A sys argv N/A 2