|
From: Mirko V. <mir...@gm...> - 2024-02-03 15:40:13
|
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 |