Add error exit 9 if fspd can't send reply back

This commit is contained in:
Radim Kolar 2020-06-05 20:18:21 +02:00
parent bec9c41478
commit 4f28a697b3
3 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@ Version NEXT
because we closing these later. This should help systemd internal because we closing these later. This should help systemd internal
inetd to work correctly using fspd socket activation. inetd to work correctly using fspd socket activation.
fspd exits with err 8 if can't write pidfile after forking fspd exits with err 8 if can't write pidfile after forking
add error exit 9 if fspd can't send back reply to client
Version 2.8.1b29 - 24 Aug 2019 Version 2.8.1b29 - 24 Aug 2019
added scons command line argument without-fspscan=yes for building added scons command line argument without-fspscan=yes for building

View File

@ -208,6 +208,9 @@ select() error
.B 8 .B 8
can not write pidfile can not write pidfile
.B 9
can not send reply back to client
.B 99 .B 99
Internal terror Internal terror

View File

@ -365,7 +365,7 @@ fprintf(stderr,"\n") ;
if(sendto(myfd,(char *)ub,(len1 + len2 + UBUF_HSIZE),0, if(sendto(myfd,(char *)ub,(len1 + len2 + UBUF_HSIZE),0,
(struct sockaddr *)from,sizeof(struct sockaddr_in)) == -1) { (struct sockaddr *)from,sizeof(struct sockaddr_in)) == -1) {
perror("sendto"); perror("sendto");
exit(7); exit(9);
} }
return(0); return(0);