Skip to content

Commit b3d2113

Browse files
committed
Remove signal stuff
1 parent cea4843 commit b3d2113

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/PyLlama.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@
22
#include "llama.h"
33
#include "utils.h"
44
#include <pybind11/pybind11.h>
5-
#include <csignal>
65

76

8-
9-
void catch_signals() {
10-
auto handler = [](int code) { throw std::runtime_error("SIGNAL " + std::to_string(code)); };
11-
signal(SIGINT, handler);
12-
signal(SIGTERM, handler);
13-
signal(SIGKILL, handler);
14-
}
15-
167
namespace py = pybind11;
178

189
class PyLLAMA {

0 commit comments

Comments
 (0)