projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updated for custom hash functions/setting functions.
[awesomized/libmemcached]
/
example
/
memcached_light.c
diff --git
a/example/memcached_light.c
b/example/memcached_light.c
index d88e5861a97a76c80a8455b0a72d2ffc061b060c..4a53217ab831dfd966cae7cc9990c4455770da7d 100644
(file)
--- a/
example/memcached_light.c
+++ b/
example/memcached_light.c
@@
-285,10
+285,12
@@
int main(int argc, char **argv)
uint32_t pid;
pid_file= fopen(global_options.pid_file, "w+");
uint32_t pid;
pid_file= fopen(global_options.pid_file, "w+");
- perror(strerror(errno));
if (pid_file == NULL)
if (pid_file == NULL)
+ {
+ perror(strerror(errno));
abort();
abort();
+ }
pid= (uint32_t)getpid();
fprintf(pid_file, "%u\n", pid);
pid= (uint32_t)getpid();
fprintf(pid_file, "%u\n", pid);