lnls-dig / halcs

Hardware Abstraction Layer for Control Systems
GNU General Public License v3.0
1 stars 4 forks source link

[CLOSED] [smio] SMIO does not exit if it receives an empty message through the PIPE socket #24

Closed lerwys closed 8 years ago

lerwys commented 8 years ago

Issue by lerwys Friday Jul 18, 2014 at 21:04 GMT Originally opened as https://github.com/lnls-dig/bpm-sw/issues/24


Problem: The SMIO should monitor its PIPE socket, in order to self-destruct if any message comes across. This ensures a simple way of deallocating and managing SMIO resources.

Solution: The DEVIO part is already done. The only part left is on the SMIO side. We just need to monitor the PIPE socket through a simple asynchronous zmsg_recv () in the smio_loop () function and exist the thread (graciously ...).