Additional to "errorreported" also the variable "libfac_interruptflag"
needs to be reset to 0 (otherwise all calls to routines from libfac
will immediately return - which happens for example in primdecSY).
See kernel/febase.cc, line 943 ff for what happens in an error case
and needs to be reset:
errorreported = TRUE;
#ifdef HAVE_FACTORY
// libfac:
extern int libfac_interruptflag;
libfac_interruptflag=1;
#endif
Hans Schoenemann