diff options
| author | Juanma Barranquero | 2010-09-28 01:25:27 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-09-28 01:25:27 +0200 |
| commit | 95b6d681b1121e1be8955aa3f79dd39098edf4cf (patch) | |
| tree | 445d016578b131a7435fac83fc1fbd49f3a45877 | |
| parent | 9f2d52e714dfa161c9c9393075a3bcdf056a4ac8 (diff) | |
| parent | 0cceab3d5942aef608dc33be4616b77206201115 (diff) | |
| download | emacs-95b6d681b1121e1be8955aa3f79dd39098edf4cf.tar.gz emacs-95b6d681b1121e1be8955aa3f79dd39098edf4cf.zip | |
Merge changes from emacs-23 branch.
| -rw-r--r-- | lisp/ChangeLog | 67 | ||||
| -rw-r--r-- | lisp/emacs-lisp/byte-opt.el | 8 | ||||
| -rw-r--r-- | lisp/international/mule-diag.el | 3 | ||||
| -rw-r--r-- | lisp/international/mule.el | 17 | ||||
| -rw-r--r-- | lisp/tar-mode.el | 3 | ||||
| -rw-r--r-- | lisp/window.el | 8 | ||||
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/dbusbind.c | 4 | ||||
| -rw-r--r-- | src/xgselect.c | 6 |
9 files changed, 81 insertions, 43 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b31ffc80c6a..ff55081fa96 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | 2010-09-27 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): | ||
| 4 | Avoid infinite recursion on erroneous lambda form. (Bug#7114) | ||
| 5 | |||
| 6 | 2010-09-27 Kenichi Handa <handa@m17n.org> | ||
| 7 | |||
| 8 | * tar-mode.el (tar-header-block-tokenize): Decode filenames in | ||
| 9 | "ustar" format. | ||
| 10 | |||
| 11 | 2010-09-27 Kenichi Handa <handa@m17n.org> | ||
| 12 | |||
| 13 | * international/mule.el (define-coding-system): Docstring fixed. | ||
| 14 | |||
| 15 | * international/mule-diag.el (describe-character-set): Use princ | ||
| 16 | with proper print-length and print-level instead of insert. | ||
| 17 | |||
| 18 | 2010-09-27 Juanma Barranquero <lekktu@gmail.com> | ||
| 19 | |||
| 20 | * window.el (walk-windows): Doc fix (bug#7105). | ||
| 21 | |||
| 1 | 2010-09-27 Stefan Monnier <monnier@iro.umontreal.ca> | 22 | 2010-09-27 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 23 | ||
| 3 | * emacs-lisp/float-sup.el (e): Remove. | 24 | * emacs-lisp/float-sup.el (e): Remove. |
| @@ -1304,8 +1325,8 @@ | |||
| 1304 | Setup standard-display-table for 8-bit characters by storing 8-bit | 1325 | Setup standard-display-table for 8-bit characters by storing 8-bit |
| 1305 | characters in the element vector. | 1326 | characters in the element vector. |
| 1306 | 1327 | ||
| 1307 | * disp-table.el (standard-display-8bit): Setup | 1328 | * disp-table.el (standard-display-8bit): |
| 1308 | standard-display-table for 8-bit characters by storing 8-bit | 1329 | Setup standard-display-table for 8-bit characters by storing 8-bit |
| 1309 | characters in the element vector. | 1330 | characters in the element vector. |
| 1310 | (standard-display-european): Likewise. | 1331 | (standard-display-european): Likewise. |
| 1311 | 1332 | ||
| @@ -1570,8 +1591,8 @@ | |||
| 1570 | (tramp-compat-file-attributes): Handle only | 1591 | (tramp-compat-file-attributes): Handle only |
| 1571 | `wrong-number-of-arguments' error. | 1592 | `wrong-number-of-arguments' error. |
| 1572 | 1593 | ||
| 1573 | * net/tramp-fish.el (tramp-fish-handle-copy-file): Add | 1594 | * net/tramp-fish.el (tramp-fish-handle-copy-file): |
| 1574 | PRESERVE_SELINUX_CONTEXT. | 1595 | Add PRESERVE_SELINUX_CONTEXT. |
| 1575 | (tramp-fish-handle-delete-file): Add TRASH arg. | 1596 | (tramp-fish-handle-delete-file): Add TRASH arg. |
| 1576 | (tramp-fish-handle-directory-files-and-attributes): | 1597 | (tramp-fish-handle-directory-files-and-attributes): |
| 1577 | Do not use `tramp-fish-handle-file-attributes. | 1598 | Do not use `tramp-fish-handle-file-attributes. |
| @@ -1589,8 +1610,8 @@ | |||
| 1589 | (with-tramp-dbus-call-method): Format trace message. | 1610 | (with-tramp-dbus-call-method): Format trace message. |
| 1590 | (tramp-gvfs-handle-copy-file): Handle PRESERVE-SELINUX-CONTEXT. | 1611 | (tramp-gvfs-handle-copy-file): Handle PRESERVE-SELINUX-CONTEXT. |
| 1591 | (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file): | 1612 | (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file): |
| 1592 | Implement backup call, when operation on local files fails. Use | 1613 | Implement backup call, when operation on local files fails. |
| 1593 | progress reporter. Flush properties of changed files. | 1614 | Use progress reporter. Flush properties of changed files. |
| 1594 | (tramp-gvfs-handle-delete-file): Add TRASH arg. Use | 1615 | (tramp-gvfs-handle-delete-file): Add TRASH arg. Use |
| 1595 | `tramp-compat-delete-file'. | 1616 | `tramp-compat-delete-file'. |
| 1596 | (tramp-gvfs-handle-expand-file-name): Expand "~/". | 1617 | (tramp-gvfs-handle-expand-file-name): Expand "~/". |
| @@ -1601,12 +1622,12 @@ | |||
| 1601 | into account for the resulting file name. | 1622 | into account for the resulting file name. |
| 1602 | (tramp-gvfs-handler-askquestion): Preserve current message, in | 1623 | (tramp-gvfs-handler-askquestion): Preserve current message, in |
| 1603 | order to let progress reporter continue afterwards. (Bug#6257) | 1624 | order to let progress reporter continue afterwards. (Bug#6257) |
| 1604 | Return dummy mountpoint, when the answer is "no". See | 1625 | Return dummy mountpoint, when the answer is "no". |
| 1605 | `tramp-gvfs-maybe-open-connection'. | 1626 | See `tramp-gvfs-maybe-open-connection'. |
| 1606 | (tramp-gvfs-handler-mounted-unmounted) | 1627 | (tramp-gvfs-handler-mounted-unmounted) |
| 1607 | (tramp-gvfs-connection-mounted-p): Test also for new mountspec | 1628 | (tramp-gvfs-connection-mounted-p): Test also for new mountspec |
| 1608 | attribute "default_location". Set "prefix" property. Handle | 1629 | attribute "default_location". Set "prefix" property. |
| 1609 | default-location. | 1630 | Handle default-location. |
| 1610 | (tramp-gvfs-mount-spec): Return both prefix and mountspec. | 1631 | (tramp-gvfs-mount-spec): Return both prefix and mountspec. |
| 1611 | (tramp-gvfs-maybe-open-connection): Test, whether mountpoint | 1632 | (tramp-gvfs-maybe-open-connection): Test, whether mountpoint |
| 1612 | exists. Raise an error, if not (due to a corresponding answer | 1633 | exists. Raise an error, if not (due to a corresponding answer |
| @@ -1620,8 +1641,8 @@ | |||
| 1620 | (tramp-imap-handle-file-local-copy): Use `with-progress-reporter'. | 1641 | (tramp-imap-handle-file-local-copy): Use `with-progress-reporter'. |
| 1621 | (tramp-imap-handle-delete-file): Add TRASH arg. | 1642 | (tramp-imap-handle-delete-file): Add TRASH arg. |
| 1622 | 1643 | ||
| 1623 | * net/tramp-smb.el (tramp-smb-handle-copy-file): Add | 1644 | * net/tramp-smb.el (tramp-smb-handle-copy-file): |
| 1624 | PRESERVE-SELINUX-CONTEXT. | 1645 | Add PRESERVE-SELINUX-CONTEXT. |
| 1625 | (tramp-smb-handle-copy-file) | 1646 | (tramp-smb-handle-copy-file) |
| 1626 | (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file) | 1647 | (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file) |
| 1627 | (tramp-smb-handle-write-region, tramp-smb-maybe-open-connection): | 1648 | (tramp-smb-handle-write-region, tramp-smb-maybe-open-connection): |
| @@ -1688,8 +1709,8 @@ | |||
| 1688 | (tramp-get-remote-path): Use `copy-tree'. | 1709 | (tramp-get-remote-path): Use `copy-tree'. |
| 1689 | (tramp-completion-handle-file-name-all-completions): Ensure, that | 1710 | (tramp-completion-handle-file-name-all-completions): Ensure, that |
| 1690 | non remote files are still checked. Oops. | 1711 | non remote files are still checked. Oops. |
| 1691 | (tramp-handle-copy-file, tramp-do-copy-or-rename-file): Handle | 1712 | (tramp-handle-copy-file, tramp-do-copy-or-rename-file): |
| 1692 | PRESERVE-SELINUX-CONTEXT. | 1713 | Handle PRESERVE-SELINUX-CONTEXT. |
| 1693 | (tramp-do-copy-or-rename-file): Add progress reporter. | 1714 | (tramp-do-copy-or-rename-file): Add progress reporter. |
| 1694 | (tramp-do-copy-or-rename-file-directly): Do not use | 1715 | (tramp-do-copy-or-rename-file-directly): Do not use |
| 1695 | `tramp-handle-file-remote-p'. | 1716 | `tramp-handle-file-remote-p'. |
| @@ -1703,8 +1724,8 @@ | |||
| 1703 | cache. | 1724 | cache. |
| 1704 | (tramp-handle-expand-file-name) | 1725 | (tramp-handle-expand-file-name) |
| 1705 | (tramp-completion-handle-file-name-all-completions) | 1726 | (tramp-completion-handle-file-name-all-completions) |
| 1706 | (tramp-completion-handle-file-name-completion): Use | 1727 | (tramp-completion-handle-file-name-completion): |
| 1707 | `tramp-connectable-p'. | 1728 | Use `tramp-connectable-p'. |
| 1708 | (tramp-handle-start-file-process): Set connection property "vec". | 1729 | (tramp-handle-start-file-process): Set connection property "vec". |
| 1709 | Use it, in order to invalidate file caches. Check only for | 1730 | Use it, in order to invalidate file caches. Check only for |
| 1710 | `remote-tty' process property. | 1731 | `remote-tty' process property. |
| @@ -3219,8 +3240,7 @@ | |||
| 3219 | 2010-07-03 Michael Albinus <michael.albinus@gmx.de> | 3240 | 2010-07-03 Michael Albinus <michael.albinus@gmx.de> |
| 3220 | 3241 | ||
| 3221 | * net/zeroconf.el (zeroconf-resolve-service) | 3242 | * net/zeroconf.el (zeroconf-resolve-service) |
| 3222 | (zeroconf-service-resolver-handler): Use | 3243 | (zeroconf-service-resolver-handler): Use `dbus-byte-array-to-string'. |
| 3223 | `dbus-byte-array-to-string'. | ||
| 3224 | (zeroconf-publish-service): Use `dbus-string-to-byte-array'. | 3244 | (zeroconf-publish-service): Use `dbus-string-to-byte-array'. |
| 3225 | 3245 | ||
| 3226 | 2010-07-03 Jan Moringen <jan.moringen@uni-bielefeld.de> | 3246 | 2010-07-03 Jan Moringen <jan.moringen@uni-bielefeld.de> |
| @@ -3382,8 +3402,7 @@ | |||
| 3382 | * emacs-lisp/package-x.el: New file. Package uploading | 3402 | * emacs-lisp/package-x.el: New file. Package uploading |
| 3383 | functionality split out from package.el. | 3403 | functionality split out from package.el. |
| 3384 | 3404 | ||
| 3385 | * startup.el (command-line): Load packages after reading init | 3405 | * startup.el (command-line): Load packages after reading init file. |
| 3386 | file. | ||
| 3387 | 3406 | ||
| 3388 | 2010-06-17 Tom Tromey <tromey@redhat.com> | 3407 | 2010-06-17 Tom Tromey <tromey@redhat.com> |
| 3389 | 3408 | ||
| @@ -3434,8 +3453,8 @@ | |||
| 3434 | 2010-06-21 Dan Nicolaescu <dann@ics.uci.edu> | 3453 | 2010-06-21 Dan Nicolaescu <dann@ics.uci.edu> |
| 3435 | 3454 | ||
| 3436 | Fix reading file names in Git annotate buffers. | 3455 | Fix reading file names in Git annotate buffers. |
| 3437 | * vc/vc-git.el (vc-git-annotate-extract-revision-at-line): Remove | 3456 | * vc/vc-git.el (vc-git-annotate-extract-revision-at-line): |
| 3438 | trailing whitespace. Suggested by Eric Hanchrow. (Bug#6481) | 3457 | Remove trailing whitespace. Suggested by Eric Hanchrow. (Bug#6481) |
| 3439 | 3458 | ||
| 3440 | 2010-06-20 Alan Mackenzie <acm@muc.de> | 3459 | 2010-06-20 Alan Mackenzie <acm@muc.de> |
| 3441 | 3460 | ||
| @@ -6228,10 +6247,6 @@ | |||
| 6228 | 6247 | ||
| 6229 | * net/trampver.el: Update release number. | 6248 | * net/trampver.el: Update release number. |
| 6230 | 6249 | ||
| 6231 | 2010-03-24 Glenn Morris <rgm@gnu.org> | ||
| 6232 | |||
| 6233 | * Makefile.in (ELCFILES): Add cedet/semantic/imenu.el. | ||
| 6234 | |||
| 6235 | 2010-03-24 Michael Albinus <michael.albinus@gmx.de> | 6250 | 2010-03-24 Michael Albinus <michael.albinus@gmx.de> |
| 6236 | 6251 | ||
| 6237 | * net/tramp.el (tramp-find-executable): | 6252 | * net/tramp.el (tramp-find-executable): |
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index 1ff34fa6a81..8447d3f05c0 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el | |||
| @@ -382,9 +382,11 @@ | |||
| 382 | form)) | 382 | form)) |
| 383 | ((or (byte-code-function-p fn) | 383 | ((or (byte-code-function-p fn) |
| 384 | (eq 'lambda (car-safe fn))) | 384 | (eq 'lambda (car-safe fn))) |
| 385 | (byte-optimize-form-code-walker | 385 | (let ((newform (byte-compile-unfold-lambda form))) |
| 386 | (byte-compile-unfold-lambda form) | 386 | (if (eq newform form) |
| 387 | for-effect)) | 387 | ;; Some error occured, avoid infinite recursion |
| 388 | form | ||
| 389 | (byte-optimize-form-code-walker newform for-effect)))) | ||
| 388 | ((memq fn '(let let*)) | 390 | ((memq fn '(let let*)) |
| 389 | ;; recursively enter the optimizer for the bindings and body | 391 | ;; recursively enter the optimizer for the bindings and body |
| 390 | ;; of a let or let*. This for depth-firstness: forms that | 392 | ;; of a let or let*. This for depth-firstness: forms that |
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index a809b60da7f..ed2f7e33a4c 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -368,7 +368,8 @@ meanings of these arguments." | |||
| 368 | (when val | 368 | (when val |
| 369 | (if (cadr elt) (insert (cadr elt))) | 369 | (if (cadr elt) (insert (cadr elt))) |
| 370 | (if (nth 2 elt) | 370 | (if (nth 2 elt) |
| 371 | (insert (funcall (nth 2 elt) val))) | 371 | (let ((print-length 10) (print-level 2)) |
| 372 | (princ (funcall (nth 2 elt) val) (current-buffer)))) | ||
| 372 | (insert ?\n))))))) | 373 | (insert ?\n))))))) |
| 373 | 374 | ||
| 374 | ;;; CODING-SYSTEM | 375 | ;;; CODING-SYSTEM |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index a5775b59b28..151373e27ea 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -635,18 +635,19 @@ VALUE must be a translation table to use on encoding. | |||
| 635 | 635 | ||
| 636 | VALUE must be a function to call after some text is inserted and | 636 | VALUE must be a function to call after some text is inserted and |
| 637 | decoded by the coding system itself and before any functions in | 637 | decoded by the coding system itself and before any functions in |
| 638 | `after-insert-functions' are called. The arguments to this function | 638 | `after-insert-functions' are called. This function is passed one |
| 639 | are the same as those of a function in `after-insert-file-functions', | 639 | argument; the number of characters in the text to convert, with |
| 640 | i.e. LENGTH of the text to be decoded with point at the head of it, | 640 | point at the start of the text. The function should leave point |
| 641 | and the function should leave point unchanged. | 641 | the same, and return the new character count. |
| 642 | 642 | ||
| 643 | `:pre-write-conversion' | 643 | `:pre-write-conversion' |
| 644 | 644 | ||
| 645 | VALUE must be a function to call after all functions in | 645 | VALUE must be a function to call after all functions in |
| 646 | `write-region-annotate-functions' and `buffer-file-format' are called, | 646 | `write-region-annotate-functions' and `buffer-file-format' are |
| 647 | and before the text is encoded by the coding system itself. The | 647 | called, and before the text is encoded by the coding system |
| 648 | arguments to this function are the same as those of a function in | 648 | itself. This function should convert the whole text in the |
| 649 | `write-region-annotate-functions'. | 649 | current buffer. For backward compatibility, this funciton is |
| 650 | passed two arguments which can be ignored. | ||
| 650 | 651 | ||
| 651 | `:default-char' | 652 | `:default-char' |
| 652 | 653 | ||
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index f8b9cf09fba..ba3cb862bf2 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el | |||
| @@ -285,7 +285,8 @@ write-date, checksum, link-type, and link-name." | |||
| 285 | (let* ((size (tar-parse-octal-integer | 285 | (let* ((size (tar-parse-octal-integer |
| 286 | string tar-size-offset tar-time-offset)) | 286 | string tar-size-offset tar-time-offset)) |
| 287 | ;; -1 so as to strip the terminating 0 byte. | 287 | ;; -1 so as to strip the terminating 0 byte. |
| 288 | (name (buffer-substring pos (+ pos size -1))) | 288 | (name (decode-coding-string |
| 289 | (buffer-substring pos (+ pos size -1)) coding)) | ||
| 289 | (descriptor (tar-header-block-tokenize | 290 | (descriptor (tar-header-block-tokenize |
| 290 | (+ pos (tar-roundup-512 size)) | 291 | (+ pos (tar-roundup-512 size)) |
| 291 | coding))) | 292 | coding))) |
diff --git a/lisp/window.el b/lisp/window.el index 9a52667cea0..45d7875cf20 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -162,8 +162,8 @@ counts, `walk-windows' includes the windows in the frame from | |||
| 162 | which you entered the minibuffer, as well as the minibuffer | 162 | which you entered the minibuffer, as well as the minibuffer |
| 163 | window. | 163 | window. |
| 164 | 164 | ||
| 165 | ALL-FRAMES nil or omitted means cycle through all windows on | 165 | ALL-FRAMES nil or omitted means cycle through all windows on the |
| 166 | WINDOW's frame, plus the minibuffer window if specified by the | 166 | selected frame, plus the minibuffer window if specified by the |
| 167 | MINIBUF argument, see above. If the minibuffer counts, cycle | 167 | MINIBUF argument, see above. If the minibuffer counts, cycle |
| 168 | through all windows on all frames that share that minibuffer | 168 | through all windows on all frames that share that minibuffer |
| 169 | too. | 169 | too. |
| @@ -175,8 +175,8 @@ ALL-FRAMES 0 means cycle through all windows on all visible and | |||
| 175 | iconified frames. | 175 | iconified frames. |
| 176 | ALL-FRAMES a frame means cycle through all windows on that frame | 176 | ALL-FRAMES a frame means cycle through all windows on that frame |
| 177 | only. | 177 | only. |
| 178 | Anything else means cycle through all windows on WINDOW's frame | 178 | Anything else means cycle through all windows on the selected |
| 179 | and no others. | 179 | frame and no others. |
| 180 | 180 | ||
| 181 | This function changes neither the order of recently selected | 181 | This function changes neither the order of recently selected |
| 182 | windows nor the buffer list." | 182 | windows nor the buffer list." |
diff --git a/src/ChangeLog b/src/ChangeLog index fac06961ef9..a378097d7fd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2010-09-27 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0". | ||
| 4 | (Bug#7113) | ||
| 5 | |||
| 1 | 2010-09-27 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2010-09-27 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 8 | * xgselect.c (xg_select): Clear file descriptors not set from | ||
| 9 | rfds and wfds. | ||
| 10 | |||
| 3 | * process.c (wait_reading_process_output): Add missing FD_CLR | 11 | * process.c (wait_reading_process_output): Add missing FD_CLR |
| 4 | for write_mask (must mirror connect_wait_mask). | 12 | for write_mask (must mirror connect_wait_mask). |
| 5 | 13 | ||
diff --git a/src/dbusbind.c b/src/dbusbind.c index a0881a06f66..ffa02e8e9c9 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -2161,8 +2161,12 @@ be called when the D-Bus reply message arrives. */); | |||
| 2161 | doc: /* If non-nil, debug messages of D-Bus bindings are raised. */); | 2161 | doc: /* If non-nil, debug messages of D-Bus bindings are raised. */); |
| 2162 | #ifdef DBUS_DEBUG | 2162 | #ifdef DBUS_DEBUG |
| 2163 | Vdbus_debug = Qt; | 2163 | Vdbus_debug = Qt; |
| 2164 | /* We can also set environment DBUS_VERBOSE=1 in order to see more | ||
| 2165 | traces. */ | ||
| 2164 | #else | 2166 | #else |
| 2165 | Vdbus_debug = Qnil; | 2167 | Vdbus_debug = Qnil; |
| 2168 | /* We do not want to abort. */ | ||
| 2169 | setenv ("DBUS_FATAL_WARNINGS", "0", 1); | ||
| 2166 | #endif | 2170 | #endif |
| 2167 | 2171 | ||
| 2168 | Fprovide (intern_c_string ("dbusbind"), Qnil); | 2172 | Fprovide (intern_c_string ("dbusbind"), Qnil); |
diff --git a/src/xgselect.c b/src/xgselect.c index 56e14fe6e14..487f9882b81 100644 --- a/src/xgselect.c +++ b/src/xgselect.c | |||
| @@ -109,11 +109,17 @@ xg_select (int max_fds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, | |||
| 109 | if (rfds && FD_ISSET (i, rfds)) ++retval; | 109 | if (rfds && FD_ISSET (i, rfds)) ++retval; |
| 110 | else ++our_fds; | 110 | else ++our_fds; |
| 111 | } | 111 | } |
| 112 | else if (rfds) | ||
| 113 | FD_CLR (i, rfds); | ||
| 114 | |||
| 112 | if (have_wfds && FD_ISSET (i, &all_wfds)) | 115 | if (have_wfds && FD_ISSET (i, &all_wfds)) |
| 113 | { | 116 | { |
| 114 | if (wfds && FD_ISSET (i, wfds)) ++retval; | 117 | if (wfds && FD_ISSET (i, wfds)) ++retval; |
| 115 | else ++our_fds; | 118 | else ++our_fds; |
| 116 | } | 119 | } |
| 120 | else if (wfds) | ||
| 121 | FD_CLR (i, wfds); | ||
| 122 | |||
| 117 | if (efds && FD_ISSET (i, efds)) | 123 | if (efds && FD_ISSET (i, efds)) |
| 118 | ++retval; | 124 | ++retval; |
| 119 | } | 125 | } |