Skip to content

The timer in _destroyJavaVM does not take effect #407

@sincatter

Description

@sincatter
#if PG_VERSION_NUM >= 90300
		tid = RegisterTimeout(USER_TIMEOUT, terminationTimeoutHandler);
#else
		saveSigAlrm = pqsignal(SIGALRM, terminationTimeoutHandler);
		enable_sig_alarm(5000, false);
#endif

		elog(DEBUG2, "shutting down the Java virtual machine");
		JNI_destroyVM(s_javaVM);

#if PG_VERSION_NUM >= 90300
		disable_timeout(tid, false);
#else
		disable_sig_alarm(false);
		pqsignal(SIGALRM, saveSigAlrm);
#endif

static void _destroyJavaVM(int status, Datum dummy)

Hi~
Why is enable_timeout_after(tid, 5000) not used when PG_VERSION_NUM >= 90300, like when PG_VERSION_NUM < 90300.

I think when PG_VERSION_NUM >= 90300, The timer does not really take effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions