bugfix: for_sig != -1