use atomic variable for the control-c flag.

This commit is contained in:
Kelvin Sherlock
2016-02-22 12:03:58 -05:00
parent fafb08b90a
commit 6ff7b50a7d
2 changed files with 6 additions and 4 deletions

View File

@@ -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();