diff options
author | Stewart Smith <stewart@flamingspork.com> | 2011-02-11 12:06:24 +1100 |
---|---|---|
committer | Stewart Smith <stewart@flamingspork.com> | 2011-02-11 12:06:24 +1100 |
commit | aaf830998ef2dc127dd09f30fc9a2156e0634a57 (patch) | |
tree | 0e9caa6f54dccfadea05a09b352e59b865d59d7f | |
parent | bd12721599802b1a91513ae56c0ab002890c60b0 (diff) |
move daemon-with-notify to daemon_with_notify as dashes aren't allowed in CCAN module names (and ccanlint segfaults on them)
l--------- | ccan/daemon_with_notify/LICENSE (renamed from ccan/daemon-with-notify/LICENSE) | 0 | ||||
-rw-r--r-- | ccan/daemon_with_notify/_info (renamed from ccan/daemon-with-notify/_info) | 9 | ||||
-rw-r--r-- | ccan/daemon_with_notify/daemon_with_notify.c (renamed from ccan/daemon-with-notify/daemon-with-notify.c) | 2 | ||||
-rw-r--r-- | ccan/daemon_with_notify/daemon_with_notify.h (renamed from ccan/daemon-with-notify/daemon-with-notify.h) | 0 | ||||
-rw-r--r-- | ccan/daemon_with_notify/test/run.c (renamed from ccan/daemon-with-notify/test/run.c) | 4 |
5 files changed, 8 insertions, 7 deletions
diff --git a/ccan/daemon-with-notify/LICENSE b/ccan/daemon_with_notify/LICENSE index f8598ee1..f8598ee1 120000 --- a/ccan/daemon-with-notify/LICENSE +++ b/ccan/daemon_with_notify/LICENSE diff --git a/ccan/daemon-with-notify/_info b/ccan/daemon_with_notify/_info index 701ca613..6f26898e 100644 --- a/ccan/daemon-with-notify/_info +++ b/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; } + diff --git a/ccan/daemon-with-notify/daemon-with-notify.c b/ccan/daemon_with_notify/daemon_with_notify.c index 03c6d380..bcc627bb 100644 --- a/ccan/daemon-with-notify/daemon-with-notify.c +++ b/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); diff --git a/ccan/daemon-with-notify/daemon-with-notify.h b/ccan/daemon_with_notify/daemon_with_notify.h index f80e7f51..f80e7f51 100644 --- a/ccan/daemon-with-notify/daemon-with-notify.h +++ b/ccan/daemon_with_notify/daemon_with_notify.h diff --git a/ccan/daemon-with-notify/test/run.c b/ccan/daemon_with_notify/test/run.c index 70ccfbbe..3af42043 100644 --- a/ccan/daemon-with-notify/test/run.c +++ b/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> |