-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
183 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef ZKHOOKS_HH | ||
#define ZKHOOKS_HH | ||
|
||
#endif // ZKHOOKS_HH | ||
#endif // ZKHOOKS_HH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,35 @@ | ||
#ifndef ZKSIG_HH | ||
#define ZKSIG_HH | ||
|
||
#include "zktypes.hh" | ||
#include <signal.h> | ||
#include <sys/types.h> | ||
|
||
#include "zktypes.hh" | ||
|
||
namespace ZkProcess { | ||
class Signal { | ||
public: | ||
Signal(pid_t pid); | ||
Signal(const Signal&) =default; | ||
Signal(Signal&&) =default; | ||
class Signal { | ||
public: | ||
Signal(pid_t pid); | ||
Signal(const Signal&) = default; | ||
Signal(Signal&&) = default; | ||
|
||
bool SignalProcess(int signal) const; | ||
inline bool SignalStopProcess(void) const { | ||
return SignalProcess(SIGSTOP); | ||
} | ||
inline bool SignalKillProcess(void) const { | ||
return SignalProcess(SIGKILL); | ||
} | ||
inline bool SignalContinueProcess(void) const { | ||
return SignalProcess(SIGCONT); | ||
} | ||
inline bool SignalTrapProcess(void) const { | ||
return SignalProcess(SIGTRAP); | ||
} | ||
|
||
bool SignalProcess(int signal) const; | ||
inline bool SignalStopProcess(void) const | ||
{ | ||
return SignalProcess(SIGSTOP); | ||
} | ||
inline bool SignalKillProcess(void) const | ||
{ | ||
return SignalProcess(SIGKILL); | ||
} | ||
inline bool SignalContinueProcess(void) const | ||
{ | ||
return SignalProcess(SIGCONT); | ||
} | ||
inline bool SignalTrapProcess(void) const | ||
{ | ||
return SignalProcess(SIGTRAP); | ||
} | ||
private: | ||
pid_t s_pid; | ||
}; | ||
private: | ||
pid_t s_pid; | ||
}; | ||
}; // namespace ZkProcess | ||
|
||
#endif // ZKSIG_HH | ||
#endif // ZKSIG_HH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.