Re: What signal to send to terminate gnuplot process?

Robert Dodier <[email protected]> Tue, 6 Feb 2024 09:51:48 -0800
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <CAAsY_sSzbh7Zovjf27NwESoq3L+w1yVX=9ZRVmvy6YAfGobm5A@mail.gmail.com>
On Sat, Feb 3, 2024 at 7:40 AM Mirko Vukovic <[email protected]> wrote:

> I can shut down the process by sending the "exit" command.
>
> But I'd also like to send a signal (such as SIGTERM) to shut gnuplot down.

Probably a cleaner and system independent way to tell gnuplot to shut
down is just to close the socket through which commands are sent -- I
don't know for sure, but I suspect that gnuplot will terminate if the
socket is closed, since that is a widely used convention for
organizing interprocess communications.

Maxima (https://maxima.sourceforge.io) is a Common Lisp application
and it has some code to work with gnuplot for plotting; see
src/plot.lisp and src/gnuplot_def.lisp (I think those are the right
file names) to get some ideas about how stuff was handled there.

best,

Robert


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info