mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2026-01-22 18:16:01 +00:00
use atomic variable for the control-c flag.
This commit is contained in:
@@ -18,8 +18,9 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sysexits.h>
|
||||
#include <atomic>
|
||||
|
||||
extern volatile int control_c;
|
||||
extern std::atomic<int> control_c;
|
||||
|
||||
namespace fs = filesystem;
|
||||
extern fs::path mpw_path();
|
||||
|
||||
Reference in New Issue
Block a user