mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
formatting
This commit is contained in:
@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include<sys/wait.h>
|
|
||||||
|
|
||||||
namespace sls {
|
namespace sls {
|
||||||
|
|
||||||
@ -17,9 +17,7 @@ namespace sls {
|
|||||||
#define gettid() syscall(SYS_gettid)
|
#define gettid() syscall(SYS_gettid)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void func(int signum) {
|
void func(int signum) { wait(NULL); }
|
||||||
wait(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
Arping::Arping() {}
|
Arping::Arping() {}
|
||||||
|
|
||||||
@ -122,7 +120,8 @@ std::string Arping::ExecuteCommands() {
|
|||||||
FILE *sysFile = popen(cmd.c_str(), "r");
|
FILE *sysFile = popen(cmd.c_str(), "r");
|
||||||
if (sysFile == NULL) {
|
if (sysFile == NULL) {
|
||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
os << "Could not Arping (" << cmd << " ) : Popen fail (" << strerror(errno) << ')';
|
os << "Could not Arping (" << cmd << " ) : Popen fail ("
|
||||||
|
<< strerror(errno) << ')';
|
||||||
return os.str();
|
return os.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user