| Revision 2224,
405 bytes
checked in by chris, 4 years ago
(diff) |
|
Allow waiting for a process while killing it, will be needed for tests
that fork() to avoid zombies and for ServerIsAlive? to work.
|
| Line | |
|---|
| 1 | #ifndef SERVER_CONTROL_H |
|---|
| 2 | #define SERVER_CONTROL_H |
|---|
| 3 | |
|---|
| 4 | #include "Test.h" |
|---|
| 5 | |
|---|
| 6 | bool HUPServer(int pid); |
|---|
| 7 | bool KillServer(int pid, bool WaitForProcess = false); |
|---|
| 8 | |
|---|
| 9 | #ifdef WIN32 |
|---|
| 10 | #include "WinNamedPipeStream.h" |
|---|
| 11 | #include "IOStreamGetLine.h" |
|---|
| 12 | #include "BoxPortsAndFiles.h" |
|---|
| 13 | |
|---|
| 14 | void SetNamedPipeName(const std::string& rPipeName); |
|---|
| 15 | // bool SendCommands(const std::string& rCmd); |
|---|
| 16 | #endif // WIN32 |
|---|
| 17 | |
|---|
| 18 | #endif // SERVER_CONTROL_H |
|---|
Note: See
TracBrowser
for help on using the repository browser.