daemon patches
"Casey T. Deccio" <[email protected]>
| Newsgroups | gmane.network.nocat |
|---|---|
| Organization | Sandia National Laboratories |
| Message-ID | <[email protected]> |
Attached is a patch to the most recent release that fixes a couple of minor bugs. It corrects the directory in the rc.nocat file to be the same as NC_STATE_DIR, so the process can be successfully shut down with a "stop" command. It also calls fflush() immediately after the pid is written to the pid file in the daemonize function (splashd.c). When I was running it, the data wasn't actually being written, so the daemon could never be killed. I didn't see if this was already done, but if it isn't already, there should probably be something in "make install" that creates the NC_STATE_DIR and NC_STATE_DIR/run directories. If not created (automagically or otherwise), starting the daemon will fail, and it's a bit hard to track down if you haven't been down that road already. Please let me know if the file attachment doesn't show up :) Casey _______________________________________________ NoCat mailing list [email protected] http://lists.nocat.net/mailman/listinfo/nocat