Make use of new getTmpFolder() function in libmist
This commit is contained in:
parent
f57a2a5e8a
commit
b695ba6491
14 changed files with 20 additions and 18 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <mist/auth.h>
|
||||
#include <mist/timing.h>
|
||||
#include <mist/converter.h>
|
||||
#include <mist/stream.h>
|
||||
#include "controller_storage.h"
|
||||
#include "controller_connectors.h"
|
||||
#include "controller_streams.h"
|
||||
|
@ -325,8 +326,7 @@ int main(int argc, char ** argv){
|
|||
time_t lastuplink = 0;
|
||||
time_t processchecker = 0;
|
||||
Socket::Server API_Socket = Socket::Server(conf.getInteger("listen_port"), conf.getString("listen_interface"), true);
|
||||
mkdir("/tmp/mist", S_IRWXU | S_IRWXG | S_IRWXO); //attempt to create /tmp/mist/ - ignore failures
|
||||
Socket::Server Stats_Socket = Socket::Server("/tmp/mist/statistics", true);
|
||||
Socket::Server Stats_Socket = Socket::Server(Util::getTmpFolder() + "statistics", true);
|
||||
conf.activate();
|
||||
Socket::Connection Incoming;
|
||||
std::vector<Controller::ConnectedUser> users;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include <mist/procs.h>
|
||||
#include <mist/config.h>
|
||||
#include <mist/timing.h>
|
||||
#include <mist/stream.h>
|
||||
#include "controller_streams.h"
|
||||
#include "controller_storage.h"
|
||||
#include <sys/stat.h>
|
||||
|
@ -147,7 +148,7 @@ namespace Controller {
|
|||
changed = true;
|
||||
}
|
||||
if (changed){
|
||||
WriteFile("/tmp/mist/streamlist", strlist.toString());
|
||||
WriteFile(Util::getTmpFolder() + "streamlist", strlist.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue