ssl_server2 now dies on SIGTERM during a read

This commit is contained in:
Manuel Pégourié-Gonnard 2014-09-20 12:03:00 +02:00 committed by Paul Bakker
parent 767c69561b
commit b6440a496b

View file

@ -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 )
{ {