Check-in [56ed33b76a]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:improvements regarding [5362b4849e]
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 56ed33b76ae2c9376172265520c65abca565e229
User & Date: chw 2019-11-08 23:04:02
References
2019-11-09
10:56
correct an error path in [56ed33b76a] check-in: cb738b7de0 user: chw tags: trunk
Context
2019-11-09
04:57
add tcl upstream changes check-in: 7b431808c6 user: chw tags: trunk
2019-11-08
23:04
improvements regarding [5362b4849e] check-in: 56ed33b76a user: chw tags: trunk
22:48
improvements regarding [9ba84a8a76] check-in: 5362b4849e user: chw tags: trunk
Changes

Changes to jni/tcl/unix/tclUnixSock.c.

1738
1739
1740
1741
1742
1743
1744
1745
1746

1747
1748
1749
1750
1751
1752
1753

	if (errno == EMFILE || errno == ENFILE) {
	    if (fds->spareFd != -1) {
		close(fds->spareFd);
		len = sizeof(addr);
		fds->spareFd = accept(fds->fd, &addr.sa, &len);
		if (fds->spareFd >= 0) {
		    close(fds->spareFd);
		    fds->spareFd = dup(fds->fd);

		}
	    }
	}
	return;
    }

    /*







|
|
>







1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754

	if (errno == EMFILE || errno == ENFILE) {
	    if (fds->spareFd != -1) {
		close(fds->spareFd);
		len = sizeof(addr);
		fds->spareFd = accept(fds->fd, &addr.sa, &len);
		if (fds->spareFd >= 0) {
		    if (dup2(fds->fd, fds->spareFd) == -1) {
			fds->spareFd = -1;
		    }
		}
	    }
	}
	return;
    }

    /*