+4
-4
@@ -1,7 +1,7 @@
|
|||||||
#include <curses.h>
|
|
||||||
#include <csignal>
|
|
||||||
#include <iostream>
|
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
|
#include <csignal>
|
||||||
|
#include <curses.h>
|
||||||
|
#include <iostream>
|
||||||
void safe_exit(int code) {
|
void safe_exit(int code) {
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
@@ -18,7 +18,7 @@ void safe_exit(int code) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SIGSEGV:
|
case SIGSEGV:
|
||||||
std::cerr << "\nreceived SIGSEGV(segmentaiton fault) exiting...\nIf this "
|
std::cerr << "\nreceived SIGSEGV(segmentation fault) exiting...\nIf this "
|
||||||
"repeats please report it as a bug\n";
|
"repeats please report it as a bug\n";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user