mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 09:05:46 +00:00
ssl_server2 now dies on SIGTERM during a read
This commit is contained in:
parent
767c69561b
commit
b6440a496b
|
@ -1511,6 +1511,15 @@ int main( int argc, char *argv[] )
|
||||||
printf( " ok\n" );
|
printf( " ok\n" );
|
||||||
|
|
||||||
reset:
|
reset:
|
||||||
|
#if !defined(_WIN32)
|
||||||
|
if( received_sigterm )
|
||||||
|
{
|
||||||
|
printf( " interrupted by SIGTERM\n" );
|
||||||
|
ret = 0;
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef POLARSSL_ERROR_C
|
#ifdef POLARSSL_ERROR_C
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue