Linux multi-process, how can one process tell another process to end the task?

< H1 > demand < / H1 >

another process (data side) is used by socket to accept data, but it does not know when the data will end, while the command side process is used to accept command data. After receiving the end command, it can tell the data side not to accept data.

< H1 > question < / H1 >

the data-side process is constantly accepting data (for loop). How can the command-side process inform it?
I"ve thought about the pipes and signals, so I don"t think so.

Mar.17,2021

the simplest thing is the socket command. If (sock.read ()) = = 'close')

Menu