X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Fdaemon-windows.c;h=ac71aa18a0edfadf3bcd497b9e4caea6b74a7c95;hb=e91b927d8966bfcb9768225392324dde4fd7d7f6;hp=3d1907e515ce48cf50319cc7947c47c5b58950e4;hpb=13a233f7b0714d6cdb20b3982fa317344dd6b331;p=cascardo%2Fovs.git diff --git a/lib/daemon-windows.c b/lib/daemon-windows.c index 3d1907e51..ac71aa18a 100644 --- a/lib/daemon-windows.c +++ b/lib/daemon-windows.c @@ -19,8 +19,10 @@ #include "daemon-private.h" #include #include +#include "dirs.h" +#include "ovs-thread.h" #include "poll-loop.h" -#include "vlog.h" +#include "openvswitch/vlog.h" VLOG_DEFINE_THIS_MODULE(daemon_windows); @@ -445,7 +447,8 @@ make_pidfile(void) /* Don't close the pidfile till the process exits. */ } -void daemonize_start(void) +void +daemonize_start(bool access_datapath OVS_UNUSED) { if (pidfile) { make_pidfile(); @@ -472,6 +475,11 @@ daemonize_complete(void) service_complete(); } +void +daemon_become_new_user(bool access_datapath OVS_UNUSED) +{ +} + /* Returns the file name that would be used for a pidfile if 'name' were * provided to set_pidfile(). The caller must free the returned string. */ char * @@ -483,3 +491,9 @@ make_pidfile_name(const char *name) return xasprintf("%s/%s.pid", ovs_rundir(), program_name); } } + +void +daemon_set_new_user(const char *user_spec OVS_UNUSED) +{ + VLOG_FATAL("--user options is not currently supported."); +}