|SIFB SIGPIPE Handler [message #1764928]
||Sun, 04 June 2017 06:00
| Felipe Adriano
Registered: February 2017
I am trying to implement a block to read/write CIP Unconnected messages to communicate with a control logix PLC., using libplctag.
I know that is not the best solution for now, the better solution is to implement the client block like modbus (is in progress, but Im trying to understand better the FORTE network layer), but I would like to know if is possible to handle SIGPIPE signal into the Function Block Thread, because in my stress tests when I stop the server with the client trying to read/write data in the broken pipe this signal hangs FORTE.
I tried to manage the SIGPIPE signal in main function (src/arch/posix/main.cpp) where is managed also SIGINT, SIGTERM, SIGHUP, but this not work, the handler never is executed.
Powered by FUDForum
. Page generated in 0.01674 seconds