Browse Source

move daemon-with-notify to daemon_with_notify as dashes aren't allowed in CCAN module names (and ccanlint segfaults on them)

Stewart Smith 15 years ago
parent
commit
aaf830998e

+ 0 - 0
ccan/daemon-with-notify/LICENSE → ccan/daemon_with_notify/LICENSE


+ 5 - 4
ccan/daemon-with-notify/_info → ccan/daemon_with_notify/_info

@@ -3,8 +3,7 @@
 #include "config.h"
 
 /**
- * daemon-with-notify - turn a process into a daemon with parent exiting when
- *                      child has decided that it has started correctly.
+ * daemon_with_notify - daemonize a process, can wait for child to signal readiness
  *
  * Daemons should detach themselves thoroughly from the process which launched
  * them, and not prevent any filesystems from being unmounted.  daemonize()
@@ -16,7 +15,7 @@
  * failing exit code and init scripts can pick this up easily.
  *
  * Example:
- *	#include <ccan/daemon-with-notify/daemon-with-notify.h>
+ *	#include <ccan/daemon_with_notify/daemon_with_notify.h>
  *	#include <ccan/str/str.h>
  *	#include <err.h>
  *	#include <unistd.h>
@@ -43,7 +42,8 @@
  *		exit(0);
  *	}
  *
- * License: BSD-MIT
+ * License: BSD
+ * Author: Stewart Smith <stewart@flamingspork.com>
  */
 int main(int argc, char *argv[])
 {
@@ -60,3 +60,4 @@ int main(int argc, char *argv[])
 
 	return 1;
 }
+

+ 1 - 1
ccan/daemon-with-notify/daemon-with-notify.c → ccan/daemon_with_notify/daemon_with_notify.c

@@ -38,7 +38,7 @@
 #include <unistd.h>
 #include <sys/select.h>
 
-#include <ccan/daemon-with-notify/daemon-with-notify.h>
+#include <ccan/daemon_with_notify/daemon_with_notify.h>
 
 void sigusr1_handler(int sig);
 

+ 0 - 0
ccan/daemon-with-notify/daemon-with-notify.h → ccan/daemon_with_notify/daemon_with_notify.h


+ 2 - 2
ccan/daemon-with-notify/test/run.c → ccan/daemon_with_notify/test/run.c

@@ -1,5 +1,5 @@
-#include <ccan/daemon-with-notify/daemon-with-notify.h>
-#include <ccan/daemon-with-notify/daemon-with-notify.c>
+#include <ccan/daemon_with_notify/daemon_with_notify.h>
+#include <ccan/daemon_with_notify/daemon_with_notify.c>
 #include <ccan/tap/tap.h>
 #include <stdlib.h>
 #include <unistd.h>