Patch correctly for missing X/Open siginfo field instead of masking it out.

This commit is contained in:
Alexey Dokuchaev 2005-02-15 09:40:04 +00:00
parent 56bd58bc20
commit cbf2aca38f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=128901

View file

@ -1,15 +1,14 @@
--- main.c.orig Mon Jan 3 21:58:29 2005
+++ main.c Wed Feb 2 21:56:11 2005
@@ -38,8 +38,8 @@
@@ -38,7 +38,7 @@
{
fprintf(stderr, "Oops! TunesBrowser has crashed. Sorry about that!\n");
fprintf(stderr, "This probably won't be of any use unless you feel like debugging,\n");
- fprintf(stderr, "but the crash occured because of %p being bad.\n", siginfo->si_ptr);
+ fprintf(stderr, "but the crash occured because of %p being bad.\n", siginfo->si_value.sigval_ptr);
#if 0
+ fprintf(stderr, "but the crash occured because of %p being bad.\n", siginfo->si_ptr);
fprintf(stderr, "\n\nRaised SIGSTOP. You can now attach a debugger.\n");
fprintf(stderr, "Attach to PID %i\n", getpid());
raise(SIGSTOP);
@@ -66,11 +66,11 @@
int ret;