From aaf830998ef2dc127dd09f30fc9a2156e0634a57 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Fri, 11 Feb 2011 12:06:24 +1100 Subject: [PATCH] move daemon-with-notify to daemon_with_notify as dashes aren't allowed in CCAN module names (and ccanlint segfaults on them) --- ccan/{daemon-with-notify => daemon_with_notify}/LICENSE | 0 ccan/{daemon-with-notify => daemon_with_notify}/_info | 9 +++++---- .../daemon_with_notify.c} | 2 +- .../daemon_with_notify.h} | 0 .../test/run.c | 4 ++-- 5 files changed, 8 insertions(+), 7 deletions(-) rename ccan/{daemon-with-notify => daemon_with_notify}/LICENSE (100%) rename ccan/{daemon-with-notify => daemon_with_notify}/_info (85%) rename ccan/{daemon-with-notify/daemon-with-notify.c => daemon_with_notify/daemon_with_notify.c} (98%) rename ccan/{daemon-with-notify/daemon-with-notify.h => daemon_with_notify/daemon_with_notify.h} (100%) rename ccan/{daemon-with-notify => daemon_with_notify}/test/run.c (93%) diff --git a/ccan/daemon-with-notify/LICENSE b/ccan/daemon_with_notify/LICENSE similarity index 100% rename from ccan/daemon-with-notify/LICENSE rename to ccan/daemon_with_notify/LICENSE diff --git a/ccan/daemon-with-notify/_info b/ccan/daemon_with_notify/_info similarity index 85% rename from ccan/daemon-with-notify/_info rename to 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 + * #include * #include * #include * #include @@ -43,7 +42,8 @@ * exit(0); * } * - * License: BSD-MIT + * License: BSD + * Author: Stewart Smith */ 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 similarity index 98% rename from ccan/daemon-with-notify/daemon-with-notify.c rename to 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 #include -#include +#include 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 similarity index 100% rename from ccan/daemon-with-notify/daemon-with-notify.h rename to 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 similarity index 93% rename from ccan/daemon-with-notify/test/run.c rename to 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 -#include +#include +#include #include #include #include -- 2.39.2