MikeB wrote:Just copy the same code to where the quit command ( about line 6792). SIGPIPE does about the same thing as SIGTERM without providing the TERMINATED 15 message . Should work for LINUX too
Yes that will work, provided Gull is terminated via the "quit" command. Otherwise if Gull is terminated by some other means, e.g. a signal, then the child processes will live on, which is not ideal. Not sure if there is a mac-specific solution like prctl for Linux.
MikeB wrote:Just copy the same code to where the quit command ( about line 6792). SIGPIPE does about the same thing as SIGTERM without providing the TERMINATED 15 message . Should work for LINUX too
Yes that will work, provided Gull is terminated via the "quit" command. Otherwise if Gull is terminated by some other means, e.g. a signal, then the child processes will live on, which is not ideal. Not sure if there is a mac-specific solution like prctl for Linux.
The child processes could periodically check for their parent pid, and commit suicide if it goes away.
basil00 wrote: Not sure if there is a mac-specific solution like prctl for Linux.
Nada -but Dan's suggestion will also work. Also the code I referenced in a previous post where SIGPIPE was already located - it is slightly difference and should as is. For quit , use "for i =0 ..." Where it said for "for i = 1 ..." Should stay as is (0 quits , 1 reduces thread to 1).