Use of the data type "sig_atomic_t" for a few variables

[The data type "sig_atomic_t"](http://www.gnu.org/software/libc/manual/html_node/Atomic-Types.html "Atomic data types") can be used for the safe exchange of integral data with signal handlers.