From: oetiker Date: Sun, 28 Sep 2008 19:09:34 +0000 (+0000) Subject: The PID file is created with open() in the parent process, while we still X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=25ae42fedeab79db1ed39f5f2d9d0fdae5172ce5;hp=25ae42fedeab79db1ed39f5f2d9d0fdae5172ce5;p=rrdtool.git The PID file is created with open() in the parent process, while we still have STDERR open. If it cannot be created, it complains verbosely to stderr. The PID file is written in the child process. The only way the fdopen() will fail on a fd that is already open is if you're completely out of memory. As in other places in the code, I didn't consider this a case that required a very verbose message. (Search for "strdup failed"). If you still think a more verbose message is called for, please suggest one. The attached patch corrects the error message to complain about fdopen() vs fopen(). I hadn't noticed that until you brought it up. -- kevin brintnall git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1532 a5681a0c-68f1-0310-ab6d-d61299d08faa ---