Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
8eb47203
Commit
8eb47203
authored
2 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
nothing to parse for a logger and force on reload instead of restart
parent
c2fc84d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib66/sanitize/sanitize_source.c
+12
-5
12 additions, 5 deletions
src/lib66/sanitize/sanitize_source.c
with
12 additions
and
5 deletions
src/lib66/sanitize/sanitize_source.c
+
12
−
5
View file @
8eb47203
...
...
@@ -26,7 +26,9 @@
void
sanitize_source
(
char
const
*
name
,
ssexec_t
*
info
,
uint32_t
flag
)
{
int
r
;
log_flow
()
;
int
r
,
logname
=
get_rstrlen_until
(
name
,
SS_LOG_SUFFIX
)
;
char
atree
[
SS_MAX_TREENAME
+
1
]
;
r
=
service_is_g
(
atree
,
name
,
STATE_FLAGS_ISPARSED
)
;
...
...
@@ -37,29 +39,34 @@ void sanitize_source(char const *name, ssexec_t *info, uint32_t flag)
int
argc
=
3
;
int
m
=
0
;
char
*
prog
=
PROG
;
char
const
*
newargv
[
argc
]
;
newargv
[
m
++
]
=
"
66-
parse"
;
newargv
[
m
++
]
=
"parse"
;
newargv
[
m
++
]
=
name
;
newargv
[
m
++
]
=
0
;
PROG
=
"parse"
;
if
(
ssexec_parse
(
argc
,
newargv
,
info
))
log_dieu
(
LOG_EXIT_SYS
,
"parse service: "
,
name
)
;
PROG
=
prog
;
}
else
if
FLAGS_ISSET
(
flag
,
STATE_FLAGS_TORE
START
)
{
}
else
if
(
FLAGS_ISSET
(
flag
,
STATE_FLAGS_TORE
LOAD
)
&&
logname
<
0
)
{
int
argc
=
4
;
int
m
=
0
;
char
*
prog
=
PROG
;
char
const
*
newargv
[
argc
]
;
newargv
[
m
++
]
=
"
66-
parse"
;
newargv
[
m
++
]
=
"parse"
;
newargv
[
m
++
]
=
"-f"
;
newargv
[
m
++
]
=
name
;
newargv
[
m
++
]
=
0
;
PROG
=
"parse"
;
if
(
ssexec_parse
(
argc
,
newargv
,
info
))
log_dieu
(
LOG_EXIT_SYS
,
"parse service: "
,
name
)
;
PROG
=
prog
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment