Browse files

Use symbolic names instead of hardcoded

  • Loading branch information...
1 parent b65e936 commit 8e37c596633a67016d48de507f9875839d9f9d08 @KristianLyng KristianLyng committed Dec 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/vmod_crashhandler.c
View
4 src/vmod_crashhandler.c
@@ -19,12 +19,12 @@ vmod_ch_sighandler(int i){
int
init_function(struct vmod_priv *priv, const struct VCL_conf *conf)
{
- signal(11,vmod_ch_sighandler);
+ signal(SIGSEGV,vmod_ch_sighandler);
return (0);
}
void
vmod_crash(struct sess * sp)
{
- raise(11);
+ raise(SIGSEGV);
}

0 comments on commit 8e37c59

Please sign in to comment.