mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
* We can't use string objects in signal handlers because they might
allocate memory, which is verboten in signal handlers. This caused random failures in the test suite on Mac OS X (triggered by the spurious SIGPOLL signals on Mac OS X, which should also be fixed).
This commit is contained in:
parent
6776a52bb3
commit
9122dcecbb
1 changed files with 4 additions and 4 deletions
|
@ -112,12 +112,12 @@ static void sigPollHandler(int sigNo)
|
|||
_isInterrupted = 1;
|
||||
blockInt = 1;
|
||||
canSendStderr = false;
|
||||
string s = "SIGPOLL\n";
|
||||
write(STDERR_FILENO, s.c_str(), s.size());
|
||||
char * s = "SIGPOLL\n";
|
||||
write(STDERR_FILENO, s, strlen(s));
|
||||
}
|
||||
} else {
|
||||
string s = "spurious SIGPOLL\n";
|
||||
write(STDERR_FILENO, s.c_str(), s.size());
|
||||
char * s = "spurious SIGPOLL\n";
|
||||
write(STDERR_FILENO, s, strlen(s));
|
||||
}
|
||||
}
|
||||
catch (Error & e) {
|
||||
|
|
Loading…
Reference in a new issue