chiark
/
gitweb
/
~ian
/
userv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debian: Use debhelper to generate maint scripts
[userv.git]
/
client.c
diff --git
a/client.c
b/client.c
index 788b507699c188953c3f49b75a0bed8b42e5b3b2..17fa6cec0dbef2fe6052738cdf4a782cc285f986 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-2,10
+2,8
@@
* userv - client.c
* client code
*
* userv - client.c
* client code
*
- * userv is
- * Copyright 1996-2017 Ian Jackson <ian@davenant.greenend.org.uk>.
- * Copyright 2000 Ben Harris <bjh21@cam.ac.uk>
- * Copyright 2016-2017 Peter Benie <pjb1008@cam.ac.uk>
+ * userv is copyright Ian Jackson and other contributors.
+ * See README for full authorship information.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
@@
-140,15
+138,17
@@
static void blocksignals(int how) {
sigset_t set;
static const char blockerrmsg[]= "userv: failed to [un]block signals: ";
const char *str;
sigset_t set;
static const char blockerrmsg[]= "userv: failed to [un]block signals: ";
const char *str;
+ int unused;
sigemptyset(&set);
sigaddset(&set,SIGCHLD);
sigaddset(&set,SIGALRM);
if (sigprocmask(how,&set,0)) {
str= strerror(errno);
sigemptyset(&set);
sigaddset(&set,SIGCHLD);
sigaddset(&set,SIGALRM);
if (sigprocmask(how,&set,0)) {
str= strerror(errno);
- write(2,blockerrmsg,sizeof(blockerrmsg)-1);
- write(2,str,strlen(str));
- write(2,"\n",1);
+ unused= write(2,blockerrmsg,sizeof(blockerrmsg)-1);
+ unused= write(2,str,strlen(str));
+ unused= write(2,"\n",1);
+ (void)unused;
exit(-1);
}
}
exit(-1);
}
}