Skip to content

Commit

Permalink
Win32 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeppoPakonen committed Oct 23, 2017
1 parent f3ec6c6 commit 6ab400e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/LibGiac/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5194,6 +5194,12 @@ gen make_symbolic(const gen & op, const gen & args) {
volatile bool signal_plot_child = false; // true if child can continue

void kill_and_wait_sigusr2() {
#if defined flagWIN32 && defined flagGCC
std::cout << "ERROR\r\n";
std::string s;
std::cin >> s;
exit(1);
#else
sigset_t mask, oldmask;
sigemptyset(&mask);
sigaddset(&mask, SIGUSR2);
Expand All @@ -5209,6 +5215,7 @@ void kill_and_wait_sigusr2() {
sigsuspend(&oldmask);
sigprocmask(SIG_UNBLOCK, &mask, NULL);
#endif
#endif
}

}
Expand Down

0 comments on commit 6ab400e

Please sign in to comment.