Bugzilla – Attachment 1617 Details for
Bug 1570
Incorrect return code if mux master has completed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
vs 5.2p1 - Don't recycle channel id 0
mux-rc.patch (text/plain), 822 bytes, created by
Peter Oliver
on 2009-03-14 04:34:46 AEDT
(
hide
)
Description:
vs 5.2p1 - Don't recycle channel id 0
Filename:
MIME Type:
Creator:
Peter Oliver
Created:
2009-03-14 04:34:46 AEDT
Size:
822 bytes
patch
obsolete
>--- channels.c~ 2009-02-14 05:28:21.000000000 +0000 >+++ channels.c 2009-03-13 17:24:17.000000000 +0000 >@@ -270,14 +270,17 @@ > channels = xcalloc(channels_alloc, sizeof(Channel *)); > for (i = 0; i < channels_alloc; i++) > channels[i] = NULL; >+ found = 0; >+ } >+ else { >+ /* Try to find a free slot where to put the new channel. */ >+ for (found = -1, i = 1; i < channels_alloc; i++) >+ if (channels[i] == NULL) { >+ /* Found a free slot. */ >+ found = (int)i; >+ break; >+ } > } >- /* Try to find a free slot where to put the new channel. */ >- for (found = -1, i = 0; i < channels_alloc; i++) >- if (channels[i] == NULL) { >- /* Found a free slot. */ >- found = (int)i; >- break; >- } > if (found < 0) { > /* There are no free slots. Take last+1 slot and expand the array. */ > found = channels_alloc;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1570
:
1617
|
1719