Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/handlers/trackservers.q
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ getdetails:{(.z.f;.z.h;system"p";@[value;`.proc.procname;`];@[value;`.proc.proct
/ add session behind a handle
addhw:{[hpuP;W]
// Get the information around a process
info:`f`h`port`procname`proctype`attributes!(@[W;({$[`getdetails in key`.servers;.servers.getdetails[];(.z.f;.z.h;system"p";`;`;$[`getattributes in key`.proc;.proc.getattributes[];()!()])]};`);(`;`;0Ni;`;`;()!())]);
info:`f`h`port`procname`proctype`attributes!(@[W;(`.servers.getdetails;`);(`;`;0Ni;`;`;()!())]);
if[0Ni~info`port;'"remote call failed on handle ",string W];
if[null name:info`procname;name:`$last("/"vs string info`f)except enlist""];
if[0=count name;name:`default];
Expand Down Expand Up @@ -175,7 +175,7 @@ retryrows:{[rows]
//function a checks if the handle passed is empty and also invokes checknontorqattr function
//which checks if .proc.getattributes is defined on the nontorqprocess and executes it
//only if it is defined
a:{$[not null x;@[x;({.proc.getattributes[]};::);()!()];()!()]};
a:{$[not null x;@[x;(`.proc.getattributes;::);()!()];()!()]};

// opencon, amends global tables, cannot be used inside of a select statement
handles:.servers.opencon each exec .servers.getconnectionstring'[proctype;procname;hpup] from .servers.SERVERS where i in rows;
Expand Down