Compare commits
10 Commits
cfd8e88e57
...
0.7.2
| Author | SHA1 | Date | |
|---|---|---|---|
| 3d7ece15f8 | |||
| 541597f355 | |||
| 5fe843d76b | |||
| 3191369ece | |||
| a4de11d69c | |||
| 4832c7db4b | |||
| be83d62f96 | |||
| 3fd2ef1da4 | |||
| d861384889 | |||
| a2b19547a3 |
+1
-1
@@ -27,7 +27,7 @@ endif
|
||||
# CXX = g++-4.8
|
||||
|
||||
ifndef CXXFLAGS
|
||||
CXXFLAGS = -Wall -O0 -g -fPIC -pthread -std=c++17 -I/usr/local/include -I/usr/include/postgresql -DEZC_HAS_SPECIAL_STREAM
|
||||
CXXFLAGS = -Wall -O0 -g -fPIC -pthread -std=c++20 -I/usr/local/include -I/usr/include/postgresql -DEZC_HAS_SPECIAL_STREAM
|
||||
endif
|
||||
|
||||
ifndef AR
|
||||
|
||||
@@ -254,6 +254,7 @@ void * BaseThread::StartRoutine(void * this_object)
|
||||
}
|
||||
}
|
||||
|
||||
base->save_log();
|
||||
pthread_exit(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2018, Tomasz Sowa
|
||||
* Copyright (c) 2018-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -58,6 +58,10 @@ public:
|
||||
|
||||
void set_synchro(Synchro * synchro);
|
||||
|
||||
// using PT::FileLog::init to suppress clang warning:
|
||||
// warning: 'Winix::FileLog::init' hides overloaded virtual function [-Woverloaded-virtual]
|
||||
using PT::FileLog::init;
|
||||
|
||||
void init(const std::wstring & log_file, bool log_stdout, int log_level, bool save_each_line, size_t log_time_zone_id);
|
||||
|
||||
void set_time_zones(TimeZones * time_zones);
|
||||
|
||||
@@ -581,6 +581,8 @@ void Image::CreateImage()
|
||||
<< ", 'convert' process returned: " << res << logend;
|
||||
}
|
||||
}
|
||||
|
||||
log << logsave;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009-2018, Tomasz Sowa
|
||||
* Copyright (c) 2009-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -222,6 +222,11 @@ void Mounts::ReadMounts(const std::wstring & mounts)
|
||||
mount_parser.Parse(mounts, mount_tab);
|
||||
|
||||
CalcCurMount();
|
||||
|
||||
// IMPROVE ME
|
||||
// cur->mount is pointing to the empty mount (it is set in functions.cpp in CheckSpecialFile method)
|
||||
// may would be better to call WINIX_FSTAB_CHANGED after the cur->mount is set?
|
||||
// some plugins are using 'cur' object
|
||||
plugin->Call((Session*)0, WINIX_FSTAB_CHANGED);
|
||||
}
|
||||
|
||||
|
||||
@@ -186,6 +186,10 @@ void ThreadManager::StopAll()
|
||||
item.object->WaitForThread();
|
||||
log << log4 << "TM: thread " << id << " terminated" << logend;
|
||||
|
||||
// the thread is stopped and we can set the thread log buffer pointing to
|
||||
// the main log buffer (from the main thread)
|
||||
item.object->set_log_buffer(log.GetLogBuffer());
|
||||
|
||||
delete item.thread_item_data;
|
||||
id += 1;
|
||||
}
|
||||
|
||||
@@ -259,7 +259,7 @@ bool TimeZone::SetTzDst(PT::Space & year)
|
||||
|
||||
int year_int = Toi(year.name);
|
||||
|
||||
if( year_int < 1970 && year_int > 10000 )
|
||||
if( year_int < 1970 || year_int > 10000 )
|
||||
return false;
|
||||
|
||||
dst.has_dst = year.Bool(L"has_dst", false);
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Winix
|
||||
|
||||
#define WINIX_VER_MAJOR 0
|
||||
#define WINIX_VER_MINOR 7
|
||||
#define WINIX_VER_REVISION 1
|
||||
#define WINIX_VER_REVISION 2
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2018, Tomasz Sowa
|
||||
* Copyright (c) 2018-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -90,6 +90,13 @@ void WinixBase::set_dependency(WinixBase * winix_base)
|
||||
|
||||
|
||||
|
||||
void WinixBase::save_log()
|
||||
{
|
||||
log << logsave;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2018, Tomasz Sowa
|
||||
* Copyright (c) 2018-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -65,6 +65,8 @@ public:
|
||||
|
||||
void set_dependency(WinixBase * winix_base);
|
||||
|
||||
void save_log();
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -168,7 +168,9 @@ Error Functions::CheckSpecialFile(const Item & item)
|
||||
{
|
||||
log << log3 << "Functions: reloading mount points" << logend;
|
||||
|
||||
cur->mount = system->mounts.GetEmptyMount();
|
||||
system->mounts.ReadMounts(item.content);
|
||||
cur->mount = system->mounts.pmount;
|
||||
templates->ReadNewIndexTemplates();
|
||||
templates->ReadNewChangeTemplates();
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<html lang="{winix_html_lang_attr}">
|
||||
|
||||
<head>
|
||||
[include "index_head_functions_add.html"]
|
||||
[include "index_head_adder.html"]
|
||||
<title>[doc_title]</title>
|
||||
</head>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<html lang="{winix_html_lang_attr}">
|
||||
|
||||
<head>
|
||||
[include "index_head_functions_add.html"]
|
||||
[include "index_head_adder.html"]
|
||||
<title>[doc_title]</title>
|
||||
</head>
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
[# rename me to index_head_adder.html]
|
||||
|
||||
|
||||
[def winix_has_uikit "true"]
|
||||
[def winix_has_jquery "false"]
|
||||
|
||||
Reference in New Issue
Block a user