[Sysfence-commit] sysfence exit.c,1.4,1.5
Status: Alpha
Brought to you by:
emes
|
From: mkoperto <mko...@us...> - 2004-05-20 14:32:50
|
Update of /cvsroot/sysfence/sysfence In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22269/sysfence Modified Files: exit.c Log Message: + now works when EXIT_OK Index: exit.c =================================================================== RCS file: /cvsroot/sysfence/sysfence/exit.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- exit.c 1 Mar 2004 17:28:10 -0000 1.4 +++ exit.c 20 May 2004 14:32:35 -0000 1.5 @@ -28,7 +28,9 @@ [EXIT_PARSE] = "Parse error: %s", [EXIT_VALUE] = "Invalid value: %s", - [EXIT_OPTION] = "Invalid option: %s" + [EXIT_OPTION] = "Invalid option: %s", + [EXIT_SHM] = "Shared memory exists", + [EXIT_SEM] = "Semaphore exists" }; extern char *usage; @@ -38,6 +40,8 @@ #ifdef DEBUG fprintf (stderr, "bail_out() exit code %d\n", excode); #endif + if (excode == EXIT_OK) exit (EXIT_OK); + if (details != NULL) fprintf (stderr, errormessage[excode], details); else |