Do strict serialization of signal handling. We had at least once race
condition that was probably caused by unexpected parallelism. One semantic change is that we used to block SIGTERM (but not SIGINT, which also would quit) during read/write operations. I don't do that anymore, so if you kill capture, the log could lose some console output.
Showing with 46 additions and 28 deletions