| Project: | Modbus Module |
| Component: | Code |
| Category: | bug |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
The signal handling is not good. I need to deal with the SIGPIPE in each port thread and stop that thread when it gets one. Then I need to have a generic signal handler for all the threads so that I know where the rest of the signals go. BSD and Linux treat signals quite a bit differently and this will make the module more portable.
| Status: | active | » postponed |
Added the SIGPIPE handling logic to the port and I'm still not sure that I need to mess with the signals. Once we really start putting pressure on the message queue it may be necessary to timeout msgrcv() but for now I'll just leave it alone and see if it really becomes a problem.