check errors

This commit is contained in:
Ivanov Matvey 2025-01-10 11:24:27 +10:00
parent 963293d6b8
commit 06f5f3d7fb
3 changed files with 3 additions and 11 deletions

View File

@ -18,5 +18,6 @@ int LogWriter::write_log(const std::string& log_line) {
int LogWriter::log_start_line(int pid){ int LogWriter::log_start_line(int pid){
time_t now = time(NULL); write_log("hello");
return 0;
} }

View File

@ -1,16 +1,7 @@
#ifndef PROCESS_LAUNCHER_H #ifndef PROCESS_LAUNCHER_H
#define PROCESS_LAUNCHER_H #define PROCESS_LAUNCHER_H
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#endif
#include <string> #include <string>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -16,7 +16,7 @@ int main(int argc, char* argv[]) {
} }
std::cout << "launch main part\n"; std::cout << "launch main part\n";
int res = LogWriter::write_log("heelo"); int res = LogWriter::log_start_line(1);
std::cout << res; std::cout << res;
return 0; return 0;
} }