summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2017-04-24 15:33:39 -0400
committerAdam Jackson <ajax@redhat.com>2017-04-24 15:33:39 -0400
commit47eceb44ca00569b76e4304ee3b36c8f87d46a3e (patch)
tree7da4e747e3e70458e880c83341ede5c1d3dcbde6
parentfcdfd5053c21441265645eb381bb9120f972735c (diff)
xtrans: Simplify an error path when started from inetd
The old code is redundant, since our caller looks like: OldListen = _FontTransGetInetdListenInfo (inetdListener); if (OldListen == NULL) { FatalError("failed to initialize OldListen to inetd socket: %s\n", strerror(errno)); } Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--os/xfstrans.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/os/xfstrans.c b/os/xfstrans.c
index e147953..edc1d05 100644
--- a/os/xfstrans.c
+++ b/os/xfstrans.c
@@ -79,10 +79,7 @@ TRANS(GetInetdListenInfo) (int fd)
#endif
if (listen (fd, BACKLOG) < 0)
- {
- FatalError("listen() failed on inetd socket: %s\n",
- strerror(errno));
- }
+ return NULL;
/* Pass the inetd socket back through the connection setup code
* the same way as a cloned listening port