with this simple test.plt file
$ cat test.plt plot sin(x) pause mouse close
if I do
GNUTERM=qt gnuplot test.plt &
when I close the window the gnuplot proceses are still running.
$ ps -ef | grep gnuplot sgaspari 25352 23603 1 19:08 pts/3 00:00:00 gnuplot test.plt sgaspari 25353 25352 2 19:08 pts/3 00:00:00 gnuplot_qt sgaspari 25381 23603 0 19:08 pts/3 00:00:00 grep --color=auto gnuplot
causing error such as
n$ Maximum number of clients reachedMaximum number of clients reachedgnuplot_qt: cannot connect to X server :0
until gnuplot processes are killed via
pkill gnuplot
doing
GNUTERM=wxt gnuplot test.plt &
does not produce the same issue. gnuplote processes are terminated upon closing window
$ uname -a Linux tllab221 3.2.0-68-generic #102-Ubuntu SMP Tue Aug 12 22:02:15 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ gnuplot --version gnuplot 4.6 patchlevel 1
Duplicate of Bug #1418
Fixed in 4.6.6 (just released; not yet announced)