Skip to content

Commit

Permalink
don't call atexit() on the local debug mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakane committed Feb 6, 2001
1 parent 32d0550 commit d62afc2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions kame/kame/racoon/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: main.c,v 1.27 2001/02/04 20:11:37 thorpej Exp $ */
/* $KAME: main.c,v 1.28 2001/02/06 15:03:16 sakane Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -200,9 +200,11 @@ main(ac, av)
plog(LLV_ERROR, LOCATION, NULL,
"cannot open %s", pid_file);
}
if (atexit(cleanup_pidfile) < 0) {
plog(LLV_ERROR, LOCATION, NULL,
"cannot register pidfile cleanup");
if (!f_local) {
if (atexit(cleanup_pidfile) < 0) {
plog(LLV_ERROR, LOCATION, NULL,
"cannot register pidfile cleanup");
}
}
}

Expand Down

0 comments on commit d62afc2

Please sign in to comment.