# HG changeset patch # User Rik # Date 1459262378 25200 # Node ID f6663c49870c2537ade214038ac954a1c6e582da # Parent 12f207a534aac660184aab8b96820497496b7835 Add comment clarifying why omp_get_num_threads is called in sysdep.cc. * sysdep.cc: Add comment explaining why function is called and reference bug number that is being fixed. diff -r 12f207a534aa -r f6663c49870c libinterp/corefcn/sysdep.cc --- a/libinterp/corefcn/sysdep.cc Mon Mar 28 22:56:18 2016 -0400 +++ b/libinterp/corefcn/sysdep.cc Tue Mar 29 07:39:38 2016 -0700 @@ -313,6 +313,9 @@ void sysdep_init (void) { + // Use a function from libgomp to force loading of OpenMP library. + // Otherwise, a dynamically loaded library making use of OpenMP such + // as GraphicsMagick will segfault on exit (bug #41699). #if defined (HAVE_OMP_GET_NUM_THREADS) omp_get_num_threads (); #endif