What signal to send to terminate gnuplot process?

Mirko Vukovic <[email protected]> Sat, 3 Feb 2024 10:39:20 -0500
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <CAO73BADtgp-D28YZvobnS+HBjQd388LK4xeMu8=t=SOyVDKRqg@mail.gmail.com>
Hello,

I am writing an interface to gnuplot from common lisp (CL). The CL process
calls gnuplot and sets up the input & output handles.

I am able to start the gnuplot process, send commands, and fetch output
(such as from "show version"). I can also generate plots.

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.

I tried this by sending the numeral 15 but that did not shut down the
process.

I searched the source code at a fork on github, found SIGTERM there, but
not what value to use for it. Nor am I sure that SIGTERM would shut it down.

Please note, that I am very new to this kind of communication with
processes. I am possibly/likely misunderstanding how things are supposed to
work. Maybe I am misunderstanding the purpose of SIGTERM, or don't have the
correct code for it.

Thanks,

Mirko

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