does not work for sqlite though, because that c-code does not regularly check whether signal handling is needed.