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')

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e53bb3-45248.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e53bb3-45248.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?