Forum OpenACS Q&A: Response to Best OS for OpenACS - FreeBSD or Linux?

Here is another patch that solves the same problem (interrupted system calls). With this, as with Connie's patch, I can now install OpenACS 4 on FreeBSD 4.3 with AOLserver 3.4.

This patch is more general -- with luck it will catch all instances of the problem. Does anybody see anything wrong/broken with this approach? (I just sent this to the AOLserver mailing list as well; we'll see what they say.)

*** thread/signal.c~    Tue Aug 14 20:25:26 2001
--- thread/signal.c     Tue Aug 14 20:26:15 2001
***************
*** 114,120 ****
  {
      struct sigaction sa;
  
!     sa.sa_flags = 0;
      sa.sa_handler = (void (*)(int)) proc;
      sigemptyset(&sa.sa_mask);
  
--- 114,120 ----
  {
      struct sigaction sa;
  
!     sa.sa_flags = SA_RESTART;
      sa.sa_handler = (void (*)(int)) proc;
      sigemptyset(&sa.sa_mask);