Check-in [cb738b7de0]
Not logged in

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

Overview
Comment:correct an error path in [56ed33b76a]
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: cb738b7de0552d653cab769cb6f22779b807a7b4
User & Date: chw 2019-11-09 10:56:55
Context
2019-11-10
17:59
import yeti 0.4.2 check-in: b2a387058e user: chw tags: trunk
2019-11-09
10:56
correct an error path in [56ed33b76a] check-in: cb738b7de0 user: chw tags: trunk
04:57
add tcl upstream changes check-in: 7b431808c6 user: chw tags: trunk
Changes

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

1739
1740
1741
1742
1743
1744
1745

1746
1747
1748
1749
1750
1751
1752
	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;
    }







>







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) {
		    if (dup2(fds->fd, fds->spareFd) == -1) {
			close(fds->spareFd);
			fds->spareFd = -1;
		    }
		}
	    }
	}
	return;
    }