-
Using IPC and peach
Hey All,
I have tried to set up my KDB HDB to use a set of 4 separate processes as 1 secondary process and 3 peach processes.
However, after assigning the 3 processes to peach, I get an error in the Developer window which says:
“could not lint the specified item(s). 10 is not an IPC handle”
thing is, it was an IPC handle but passing it to peach seems to have released it.
Before using .z.pd
10″1+1″
gives 2
What am I doing wrong?
I am on Pop_OS. I use this function in my .bashrc to start up the q sessions:
KDB(){ echo "start developer with 4 slave processes."; q -p 20001 & q -p 20002 & q -p 20003 & q -p 20004 & source /home/simon/developer/config/config.profile; q /home/simon/developer/launcher.q_ -s -4 & }
First thing from the command line I execute that function and can see from the usual q startup notifications it works. I can also see the processes have started. After that, I open KDB Developer.
In Developer I then capture the processes as follows:
// capture the other processes. {(`$".procs.h.",(string x[0])) set hopen x[1]} each flip (`tom`deric`jane`nessie;("J"$("20001";"20002";"20003";"20004"))); // assign process names to each of the processes as `self. {(neg `.procs[`h][x[0]])x[1];(neg `.procs[`h][x[0]])[];} each flip (`tom`deric`jane`nessie; raze each "`self set `",/:string `tom`deric`jane`nessie); // assign 3 processes to peach. .z.pd: `u#`.procs.h[`tom`deric`jane]
Sometimes it seems like this works until I change developer window, alter a file and save. I don’t know if that just coincidence though.
Keen to hear if anyone can see any obvious schoolboy errors.
Simon
Log in to reply.