The Samba-Bugzilla – Attachment 3372 Details for
Bug 5567
3.0.3pre3 dies with "failed to open XXX, continuing: Too many open files"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Close fd in the generator for empty files
open-files.patch (text/plain), 550 bytes, created by
Wayne Davison
on 2008-06-26 10:14:56 UTC
(
hide
)
Description:
Close fd in the generator for empty files
Filename:
MIME Type:
Creator:
Wayne Davison
Created:
2008-06-26 10:14:56 UTC
Size:
550 bytes
patch
obsolete
>--- a/generator.c >+++ b/generator.c >@@ -1952,9 +1952,12 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, > if (read_batch) > goto cleanup; > >- if (statret != 0 || whole_file || sx.st.st_size <= 0) >+ if (statret != 0 || whole_file) > write_sum_head(f_out, NULL); >- else { >+ else if (sx.st.st_size <= 0) { >+ write_sum_head(f_out, NULL); >+ close(fd); >+ } else { > if (generate_and_send_sums(fd, sx.st.st_size, f_out, f_copy) < 0) { > rprintf(FWARNING, > "WARNING: file is too large for checksum sending: %s\n",
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 Raw
Actions:
View
Attachments on
bug 5567
: 3372