X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=overlord.c;h=756c5ab67c9d4379340c5fda6b6779518432c2f4;hp=2ae825021c67f6e975ed0476688da2fe6cda6da8;hb=HEAD;hpb=dd2eafd32cd4da1c5aa816b367073c3f56e67f5c diff --git a/overlord.c b/overlord.c index 2ae8250..756c5ab 100644 --- a/overlord.c +++ b/overlord.c @@ -2,11 +2,12 @@ * userv - overlord.c * daemon main program, collects request and forks handlers * - * Copyright (C)1996-1997,1999 Ian Jackson + * 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 - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but @@ -15,8 +16,7 @@ * General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with userv; if not, write to the Free Software - * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * along with userv; if not, see . */ #include @@ -247,7 +247,8 @@ static void NONRETURNING docheck(int needwanted) { r= write(sfd,&request_mbuf,sizeof(request_mbuf)); if (r==sizeof(request_mbuf)) { endmagic= REQUEST_END_MAGIC; - write(sfd,&endmagic,sizeof(endmagic)); + r= write(sfd,&endmagic,sizeof(endmagic)); + (void)r; } syslog(LOG_NOTICE,"uservd[%ld] is running",(long)overlordpid); #endif