Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gdut-drcom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gdut-drcom
Commits
64091d87
Commit
64091d87
authored
Dec 12, 2016
by
chenhaowen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: open log file in append mode
parent
853aa1d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
src/auth.c
src/auth.c
+0
-1
src/config.c
src/config.c
+1
-1
No files found.
src/auth.c
View file @
64091d87
...
...
@@ -325,7 +325,6 @@ HEART_BEAT_START:
int
exit_auth
(
void
)
{
fprintf
(
drcom_config
.
log_file
,
"gdut-drcom heart-beat exiting!
\r\n
"
);
fclose
(
drcom_config
.
log_file
);
drcom_config
.
exit
=
1
;
return
0
;
}
...
...
src/config.c
View file @
64091d87
...
...
@@ -51,7 +51,7 @@ void get_version(char* version)
void
set_log_file
(
char
*
log_file
,
int
len
)
{
FILE
*
logp
=
fopen
(
log_file
,
"
w
"
);
FILE
*
logp
=
fopen
(
log_file
,
"
a
"
);
if
(
logp
)
{
drcom_config
.
log_file
=
logp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment