-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing closing files #280
Comments
Hello
Between 601 and 609 is some reading part of the configuration file.
If you speak about failure condition, I know it is not perfect but the OS
will free the file descriptor when the process dies.
Unfortunately there is no raise in C
"The C library function void exit(int status) terminates the calling
process immediately. Any open file descriptors belonging to the process are
closed and any children of the process are inherited by process 1, init,
and the process parent is sent a SIGCHLD signal."
Brice
…On Thu, Dec 23, 2021 at 2:30 PM ryancaicse ***@***.***> wrote:
fclose (conf_file); should be put before Line 601 and 609?
https://github.com/braice/MuMuDVB/blob/9beba0dbfa07f49d0dd894f57fae2a4cc87613e8/src/mumudvb.c#L378-L691
—
Reply to this email directly, view it on GitHub
<#280>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACRIDYAHOPABNXTA6JT5QTUSMP7DANCNFSM5KUZHQIQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fclose (conf_file);
should be put beforeLine 601 and 609
?MuMuDVB/src/mumudvb.c
Lines 378 to 691 in 9beba0d
The text was updated successfully, but these errors were encountered: