Branch: Tag:

2016-08-09

2016-08-09 14:37:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Runtime: exit_on_error() should only exit on actual errors.

Survive eg THREAD_EXIT being thrown while handling an error.

401:   PMOD_EXPORT void exit_on_error(const void *msg)   {    ONERROR tmp; +  +  if (throw_severity > THROW_ERROR) { +  /* THROW_THREAD_EXIT or THROW_EXIT or similar. +  * +  * Let it continue without complaining. +  */ +  return; +  }    SET_ONERROR(tmp,fatal_on_error,"Fatal in exit_on_error!");    d_flag=0;    Pike_interpreter.trace_level = 0;