run_erl under Linux (was: erl_interface and ALIVE)

Vance Shipley vances@REDACTED
Sat Sep 9 00:18:41 CEST 2000


Unhappily this problem has _NOT_ gone away after all.  It had been
happening right away but now it happens after the first inactivity
timeout. :(

	-Vance

}  I did dresolve this problem.  Testing showed that select was
}  returning 0 yet it had not timed out yet.  The solution turned
}  out to be setting the define USE_SETPGRP_NOARGS.  The following
}  snippet from run_erl.c was the source of the problem:
}  
}      /* disassociate from control terminal */
}  #ifdef USE_SETPGRP_NOARGS       /* SysV */
}      setpgrp();
}  #else
}  #ifdef USE_SETPGRP              /* BSD */
}      setpgrp(0,getpid());
}  #else                           /* POSIX */
}      setsid();
}  #endif
}  
}  It had been using setsid().




More information about the erlang-questions mailing list