[memcached] plindner, r500: use EXIT_* constants

commits at code.sixapart.com commits at code.sixapart.com
Thu Apr 12 20:02:48 UTC 2007


use EXIT_* constants

U   trunk/server/assoc.c
U   trunk/server/daemon.c


Modified: trunk/server/assoc.c
===================================================================
--- trunk/server/assoc.c	2007-04-12 17:38:46 UTC (rev 499)
+++ trunk/server/assoc.c	2007-04-12 20:02:46 UTC (rev 500)
@@ -485,7 +485,7 @@
     primary_hashtable = malloc(hash_size);
     if (! primary_hashtable) {
         fprintf(stderr, "Failed to init hashtable.\n");
-        exit(1);
+        exit(EXIT_FAILURE);
     }
     memset(primary_hashtable, 0, hash_size);
 }

Modified: trunk/server/daemon.c
===================================================================
--- trunk/server/daemon.c	2007-04-12 17:38:46 UTC (rev 499)
+++ trunk/server/daemon.c	2007-04-12 20:02:46 UTC (rev 500)
@@ -50,7 +50,7 @@
     case 0:
         break;
     default:
-        _exit(0);
+        _exit(EXIT_SUCCESS);
     }
 
     if (setsid() == -1)




More information about the memcached-commits mailing list