Mercurial > hg > xemacs-beta
comparison src/vdb-posix.c @ 3307:d81b1754aab1
[xemacs-hg @ 2006-03-27 15:20:28 by crestani]
2006-03-27 Mike Fabian <mfabian@suse.de>
* vdb-posix.c (vdb_install_signal_handler): Correct memset.
author | crestani |
---|---|
date | Mon, 27 Mar 2006 15:20:31 +0000 |
parents | 141c2920ea48 |
children | 6c7605dfcf07 |
comparison
equal
deleted
inserted
replaced
3306:8ce03059a3b8 | 3307:d81b1754aab1 |
---|---|
116 allow_incremental_gc = 0; | 116 allow_incremental_gc = 0; |
117 return; | 117 return; |
118 } | 118 } |
119 | 119 |
120 #ifdef USE_SIGACTION | 120 #ifdef USE_SIGACTION |
121 memset(&act, sizeof(struct sigaction), 0); | 121 memset(&act, 0, sizeof(struct sigaction)); |
122 act.sa_sigaction = vdb_fault_handler; | 122 act.sa_sigaction = vdb_fault_handler; |
123 sigemptyset (&act.sa_mask); | 123 sigemptyset (&act.sa_mask); |
124 act.sa_flags = SA_SIGINFO; | 124 act.sa_flags = SA_SIGINFO; |
125 sigaction (SIGSEGV, &act, &segv_oact); | 125 sigaction (SIGSEGV, &act, &segv_oact); |
126 sigaction (SIGBUS, &act, &bus_oact); | 126 sigaction (SIGBUS, &act, &bus_oact); |