Actions
Bug #11423
closedruby_cleanup does not reset initialized flag
Bug #11423:
ruby_cleanup does not reset initialized flag
Description
ruby_setup
checks for this static initialized to determine whether to run.
int
ruby_setup(void)
{
static int initialized = 0;
int state;
if (initialized)
return 0;
initialized = 1;
But ruby_cleanup
fails to reset it, causing future initializations to do nothing. This means an embedded app which runs ruby scripts in a setup/run/cleanup cycle will crash the second time.
Actions