chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply the remains of Ross's patch to build on Ubuntu 8.10.
[disorder]
/
lib
/
event.c
diff --git
a/lib/event.c
b/lib/event.c
index 7232915df4426a9f5dfc1135476de8e1b6dab059..38cb741ce406cb7154c17e196885255e25bd6123 100644
(file)
--- a/
lib/event.c
+++ b/
lib/event.c
@@
-517,7
+517,9
@@
static void sighandler(int s) {
/* probably the reader has stopped listening for some reason */
if(write(sigfd[s], &sc, 1) < 0) {
/* probably the reader has stopped listening for some reason */
if(write(sigfd[s], &sc, 1) < 0) {
- write(2, errmsg, sizeof errmsg - 1);
+ /* do the best we can as we're about to abort; shut _up_, gcc */
+ int _ignore = write(2, errmsg, sizeof errmsg - 1);
+ (void)_ignore;
abort();
}
}
abort();
}
}