Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2023-07-16 16:46:00 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2023-07-18 18:43:36 +0300
commit89e80d414b9d4ec71c6d43503704f7b3da3a2407 (patch)
treedfa5fec0f4d70bb2d08d825075f9e3d86fa69c23 /winsup/testsuite
parentc431f6b7fe11edc1e1cb1a8aec1205ca1713402b (diff)
Cygwin: Restore signal handlers on thread cancellation during system()
Add back the restoration of signal handlers modified during system() on thread cancellation. Removed in 3cb9da14 which describes it as 'ill-conceived' (additional context doesn't appear to be available). We use the internal implementation helpers for the pthread cleanup chain, so we can neatly tuck it inside the object, and keep the point when we restore the signal handlers the same. (The pthread_cleanup_push/pop() functions are implemented as macros which must appear in the same lexical scope.) Fixes: 3cb9da14617c ("Put signals on hold and use system_call_cleanup class to set and restore signals rather than doing it prior to to running the program. Remove the ill-conceived pthread_cleanup stuff.") Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Diffstat (limited to 'winsup/testsuite')
0 files changed, 0 insertions, 0 deletions