Re: [patch] fortran/intrinsic.texi: Add 'passed by value' to signal handler

2023-10-17 Thread Stanislav Maslovski
. Many thanks! Indeed, it was not clear that the argument is passed by value (although, I could guess that as signal() is modeled on a C function of the same name...) -- Stanislav Maslovski

Segfaults in SIGINT signal handler

2023-10-15 Thread Stanislav Maslovski
eceived = .false. enddo end program subroutine sig_handler(s) implicit none integer, intent(in) :: s logical sig_received common /signal/ sig_received sig_received = .true. end subroutine ===== What am I doing wrong? With best regards, -- Stanislav Maslovski