Fix issue #39, configure interfaces after daemonization, as otherwise we
loose the ALLMULTI flag on the listening interfaces during the whole process. Probable cause is the parent restoring the original state of the interface flags before exitting.
This commit is contained in:
parent
eb81b8f2d6
commit
13473e5259
@ -351,9 +351,6 @@ int main(int argc, char* argv[], char* env[])
|
|||||||
if (cf.is_null())
|
if (cf.is_null())
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (!configure(cf))
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
if (daemon) {
|
if (daemon) {
|
||||||
logger::syslog(true);
|
logger::syslog(true);
|
||||||
|
|
||||||
@ -361,6 +358,9 @@ int main(int argc, char* argv[], char* env[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!configure(cf))
|
||||||
|
return -1;
|
||||||
|
|
||||||
if (!pidfile.empty()) {
|
if (!pidfile.empty()) {
|
||||||
std::ofstream pf;
|
std::ofstream pf;
|
||||||
pf.open(pidfile.c_str(), std::ios::out | std::ios::trunc);
|
pf.open(pidfile.c_str(), std::ios::out | std::ios::trunc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user