check errors
This commit is contained in:
parent
963293d6b8
commit
06f5f3d7fb
@ -18,5 +18,6 @@ int LogWriter::write_log(const std::string& log_line) {
|
||||
|
||||
|
||||
int LogWriter::log_start_line(int pid){
|
||||
time_t now = time(NULL);
|
||||
write_log("hello");
|
||||
return 0;
|
||||
}
|
@ -1,16 +1,7 @@
|
||||
#ifndef 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 <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -16,7 +16,7 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
std::cout << "launch main part\n";
|
||||
int res = LogWriter::write_log("heelo");
|
||||
int res = LogWriter::log_start_line(1);
|
||||
std::cout << res;
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user