I seem to be getting different behavior depending on how I start my
application, either by launching a pterm then starting the app, or by
putting the following in a script (which is what I want to do, I want
the app to start automatically when the computer is turned on):
or pterm or pterm -G
The difference in behavior has to do with receiving signals - I send a
SIGUSR2 to all the processes in my app to force an orderly shutdown. If
I start the app manually from a pterm it works, if I launch the app from
a script several processes do not seem to receive the signal and cannot
be killed. pidin says they are reply blocked on io-net, which makes no
sense to me (only one of them interacts with the network). Anyway, what
I want to do is start the app from a script I have also tried:
pterm -l -G
This starts a shell but does not start the program. If I then manually
start the program everything works correctly(?!?). So how can I get the
above statement to start the program? It seems like that would solve my
problem. Or is there a way to tell the pterm (from a script)once it is
started to run a program?