diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-10-17 21:34:33 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-10-17 21:34:33 +0400 |
commit | 9c66cf51d5cf504ead0dd2bed85bcddaf6a40892 (patch) | |
tree | d18209abf9f3f70635b8a30709c4ceb34df6c1f0 /pthread_stop_world.c | |
parent | 4d6dd8b78fdfb0d60fa686263363e07a4bb5137c (diff) | |
download | bdwgc-9c66cf51d5cf504ead0dd2bed85bcddaf6a40892.tar.gz |
Add comment about sigaction sa_restorer field
* os_dep.c (GC_find_limit_openbsd, GC_skip_hole_openbsd,
GC_set_and_save_fault_handler, GC_dirty_init): Add comment about
sigaction sa_restorer field initialization (some static code analysis
tools report about uninitialized field but according to Linux manual
it is obsolete and should not be used).
* pthread_stop_world.c (GC_stop_init): Likewise.
Diffstat (limited to 'pthread_stop_world.c')
-rw-r--r-- | pthread_stop_world.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pthread_stop_world.c b/pthread_stop_world.c index d9231b4a..11ebaea3 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -887,12 +887,13 @@ GC_INNER void GC_stop_init(void) # else act.sa_handler = GC_suspend_handler; # endif + /* act.sa_restorer is deprecated and should not be initialized. */ if (sigaction(GC_sig_suspend, &act, NULL) != 0) { ABORT("Cannot set SIG_SUSPEND handler"); } # ifdef SA_SIGINFO - act.sa_flags &= ~ SA_SIGINFO; + act.sa_flags &= ~SA_SIGINFO; # endif act.sa_handler = GC_restart_handler; if (sigaction(GC_sig_thr_restart, &act, NULL) != 0) { |