Branch: Tag:

2015-07-31

2015-07-31 16:10:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite [Process]: Added workaround for Linux kernel bug.

wait(2) et al in Linux 3.15 - 3.18 are not thread safe, and a blocking
wait() can hang when a different thread reaps the same process (eg via
a signal handler).

Fixes intermittent testsuite failures on Linux 3.15 - 3.18.

1392:      array start()   { +  if ((uname()->sysname == "Linux") && +  (< "3.15", "3.16", "3.17", "3.18">)[uname()->release[..3] ]) { +  // This test trigers a kernel bug in Linux kernels 3.15 - 3.18 +  // introduced in commit b3ab03160dfaf8ab78d476b670de319f4c1a5685, +  // and fixed in commit 3245d6acab981a2388ffb877c7ecc97e763c59d4. +  return ({}); +  }    array a=({});    for(int e=0;e<10;e++)    a+=({thread_create(gnapp,e)});