]> Zhao Yanbai Git Server - minix.git/commitdiff
Let tcpd retry on errors.
authorBen Gras <ben@minix3.org>
Wed, 15 Mar 2006 13:59:13 +0000 (13:59 +0000)
committerBen Gras <ben@minix3.org>
Wed, 15 Mar 2006 13:59:13 +0000 (13:59 +0000)
commands/simple/tcpd.c

index f66964eae811c2ac9a553a55de2113e2fea574f8..b98afb825760c76ebc5a176818d43825df28dab3 100755 (executable)
@@ -173,10 +173,12 @@ int main(int argc, char **argv)
     while (1) {
        if ((tcp_fd= open(tcp_device, O_RDWR)) < 0) {
            report(tcp_device);
+#if 0
            if (errno == ENOENT || errno == ENODEV
                            || errno == ENXIO) {
                exit(1);
            }
+#endif
            goto bad;
        }