From: Ian Jackson Date: Wed, 29 Dec 2021 15:26:48 +0000 (+0000) Subject: overlord: Explicitly ignore unwanted value from write X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=4fe2a797f8f6cf9a2e0f9ec4f476327f7e319212;p=userv.git overlord: Explicitly ignore unwanted value from write Ignoring an error here is consistent with the error handling from the pevious write(sf,...). Signed-off-by: Ian Jackson --- diff --git a/overlord.c b/overlord.c index 1cfba9b..bb3cc40 100644 --- a/overlord.c +++ b/overlord.c @@ -249,7 +249,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