about summary refs log tree commit homepage
path: root/cmogstored.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-11-12 21:34:06 +0000
committerEric Wong <normalperson@yhbt.net>2012-11-12 21:41:24 +0000
commit5b0a474d479f1c77290ad4976548f60f24f69553 (patch)
tree0f61084c7557e3a0d1a532a6c16a0a0d3a2b46e0 /cmogstored.c
parentecbc2ef0b41a9adfd35a1d7979de75f6e5ff1142 (diff)
downloadcmogstored-5b0a474d479f1c77290ad4976548f60f24f69553.tar.gz
This avoids segfaulting on error messages with
non-glibc systems (e.g. FreeBSD 9.0).
Diffstat (limited to 'cmogstored.c')
-rw-r--r--cmogstored.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmogstored.c b/cmogstored.c
index c166d74..2f73911 100644
--- a/cmogstored.c
+++ b/cmogstored.c
@@ -561,6 +561,7 @@ int main(int argc, char *argv[], char *envp[])
 {
         /* hack for older gcov + gcc, see nostd/setproctitle.h */
         spt_init(argc, argv, envp);
+        set_program_name(argv[0]);
 
         mog_intr_disable();
         setup(argc, argv); /* this daemonizes */