Fix sigaction to make cmatrix work