mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
os: Introduce OsAbort for proper core dumps.
Signed-off-by: Rami Ylimaki <ext-rami.ylimaki@nokia.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
031f92bf9a
commit
ca364ca82a
2 changed files with 14 additions and 0 deletions
12
os/utils.c
12
os/utils.c
|
|
@ -1310,6 +1310,18 @@ OsReleaseSignals (void)
|
|||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Pending signals may interfere with core dumping. Provide a
|
||||
* mechanism to block signals when aborting.
|
||||
*/
|
||||
|
||||
void
|
||||
OsAbort (void)
|
||||
{
|
||||
OsBlockSignals();
|
||||
abort();
|
||||
}
|
||||
|
||||
#if !defined(WIN32)
|
||||
/*
|
||||
* "safer" versions of system(3), popen(3) and pclose(3) which give up
|
||||
|
|
|
|||
Loading…
Reference in a new issue