diff options
author | Adam Jackson <ajax@redhat.com> | 2017-04-24 15:33:39 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-04-24 15:33:39 -0400 |
commit | 47eceb44ca00569b76e4304ee3b36c8f87d46a3e (patch) | |
tree | 7da4e747e3e70458e880c83341ede5c1d3dcbde6 /os | |
parent | fcdfd5053c21441265645eb381bb9120f972735c (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>
Diffstat (limited to 'os')
-rw-r--r-- | os/xfstrans.c | 5 |
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 |