Commit d794ea979d1251164c1cae6c5c85b345b5f9cecb
Fix a typo in SignalSaver's constructor
Author: xaizek
Author date (UTC): 2022-06-25 21:27
Committer name: xaizek
Committer date (UTC): 2022-06-25 21:27
Parent(s): b58e3edecac197b076f3a4d837d49eb50abf51ea
Signing key: 99DC5E4DB05F6BE2
Tree: ec1dbf5e3567c298dc8e3a04677347c6bd6b34c9
| File PromptRequest.cpp changed (mode: 100644) (index 3f6f7cc..7cfc31f) |
| ... |
... |
public: |
| 49 |
49 |
explicit SignalSaver(int sigNum) : sigNum(sigNum) |
explicit SignalSaver(int sigNum) : sigNum(sigNum) |
| 50 |
50 |
{ |
{ |
| 51 |
51 |
if (sigaction(sigNum, nullptr, &sa) == -1) { |
if (sigaction(sigNum, nullptr, &sa) == -1) { |
| 52 |
|
throw std::runtime_error("Failed wit save signal"); |
|
|
52 |
|
throw std::runtime_error("Failed to save signal"); |
| 53 |
53 |
} |
} |
| 54 |
54 |
} |
} |
| 55 |
55 |
|
|