Some platforms provide getcontext() but it does not work
Some platforms claim to be POSIX but their getcontext() implementation does not work. Therefore we update the ASYNC_is_capable() function to test for this. RT#4366 Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
committed by
Richard Levitte
parent
685b6f293b
commit
c521edc3a1
@@ -62,7 +62,13 @@
|
||||
|
||||
int ASYNC_is_capable(void)
|
||||
{
|
||||
return 1;
|
||||
ucontext_t ctx;
|
||||
|
||||
/*
|
||||
* Some platforms provide getcontext() but it does not work (notably
|
||||
* MacOSX PPC64). Check for a working getcontext();
|
||||
*/
|
||||
return getcontext(&ctx) == 0;
|
||||
}
|
||||
|
||||
void async_local_cleanup(void)
|
||||
|
||||
Reference in New Issue
Block a user