Bugfix: variable synchronization in signal handler

* include/system.h
* src/main.c
Changed subprocess counter variable type to 'volatile sig_atomic_t'.