Signal Handling

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.