From 8442ac2eeb58acb029dcea168b187e48f0170708 Mon Sep 17 00:00:00 2001 From: midronij Date: Wed, 20 Mar 2024 18:44:59 -0400 Subject: [PATCH] Comment out unsupported block of code TODO: Find a permanent solution to this Signed-off-by: midronij --- port/unix/omrsignal.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/port/unix/omrsignal.c b/port/unix/omrsignal.c index 544df5f4bd8..f0abd4a8ae4 100644 --- a/port/unix/omrsignal.c +++ b/port/unix/omrsignal.c @@ -406,15 +406,17 @@ omrsig_protect(struct OMRPortLibrary *portLibrary, omrsig_protected_fn fn, void */ OMRCurrentSignal *currentSignal = omrthread_tls_get(thisThread, tlsKeyCurrentSignal); - /* setjmp/longjmp does not clear the mask setup by the OS when it delivers the signal. User sigsetjmp/siglongjmp(buf, 1) instead */ +/* + // setjmp/longjmp does not clear the mask setup by the OS when it delivers the signal. User sigsetjmp/siglongjmp(buf, 1) instead if (0 != sigsetjmp(thisRecord.returnBuf, 1)) { - /* the handler had long jumped back here -- reset the signal handler stack and currentSignal and return */ + // the handler had long jumped back here -- reset the signal handler stack and currentSignal and return omrthread_tls_set(thisThread, tlsKey, thisRecord.previous); omrthread_tls_set(thisThread, tlsKeyCurrentSignal, currentSignal); *result = 0; Trc_PRT_signal_omrsignal_sig_protect_Exit_long_jumped_back_to_omrsig_protect(fn, fn_arg, handler, handler_arg, flags); return OMRPORT_SIG_EXCEPTION_OCCURRED; } +*/ } if (0 != omrthread_tls_set(thisThread, tlsKey, &thisRecord)) {