The Samba-Bugzilla – Attachment 17166 Details for
Bug 14980
File closure after +/- 10 hours on Samba SMB3 with Kerberos
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
C-program source to reproduce the closed file problem
fwrite-c.txt (text/plain), 646 bytes, created by
Hans van Leeuwen
on 2022-02-15 08:13:42 UTC
(
hide
)
Description:
C-program source to reproduce the closed file problem
Filename:
MIME Type:
Creator:
Hans van Leeuwen
Created:
2022-02-15 08:13:42 UTC
Size:
646 bytes
patch
obsolete
>#include <windows.h> >#include <stdio.h> >#include <time.h> >#include <errno.h> > >int main() >{ > FILE *fp; > int ret_val1, ret_val2; > > fp = fopen("X:/0000/hans/ftest_file.txt", "w"); > > do > { > time_t t = time(NULL); > struct tm tm = *localtime(&t); > printf("%2d %02d:%02d:%02d\n", tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); > ret_val1 = fprintf(fp, "%2d %02d:%02d:%02d\n", tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); > ret_val2 = fflush(fp); > printf("fprintf ret_val = %d fflush ret_val = %d errno = %d\n", ret_val1, ret_val2, errno); > Sleep(60000); > } while(1); > > close(fp); > > return(0); >}
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 14980
: 17166