|
From: sfeam <sf...@us...> - 2014-11-16 04:12:08
|
On Saturday, 15 November 2014 08:32:38 PM Daniel J Sebald wrote: > I meant "zombie", not daemon. I don't see a zombie. The original process really does exit. > There must be some way of doing this without having to stop/restart a > thread in the process. The problem does not depend stop/start of a thread. It acts the same even if gnuplot is built in single-threaded mode. The exit+persist procedure is to fork(), leaving a parent and a child. The parent calls atexit() and exits. The child is supposed to maintain the plot window. Both the parent and child can be a single thread. I don't say that this is necessarily the only possible procedure or the best procedure, but that's the way it currently works. Ethan |