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
1c623403
Commit
1c623403
authored
2 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
adapt to new svc function name
parent
56ee2cd5
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/66/66-scanctl.c
+11
-6
11 additions, 6 deletions
src/66/66-scanctl.c
with
11 additions
and
6 deletions
src/66/66-scanctl.c
+
11
−
6
View file @
1c623403
...
...
@@ -29,6 +29,7 @@
#include
<s6/config.h>
#include
<66/svc.h>
#include
<66/utils.h>
static
char
TMPENV
[
MAXENV
+
1
]
;
...
...
@@ -137,14 +138,13 @@ static int send_signal(char const *scandir, char const *signal)
auto_strings
(
csig
,
signal
)
;
}
log_info
(
"Sending -"
,
csig
,
" signal to scandir: "
,
scandir
,
"..."
)
;
return
scandir_send_signal
(
scandir
,
csig
)
;
return
svc_scandir_send
(
scandir
,
csig
)
;
}
static
void
scandir_up
(
char
const
*
scandir
,
unsigned
int
timeout
,
unsigned
int
notif
,
char
const
*
const
*
envp
)
{
int
r
;
r
=
scandir_ok
(
scandir
)
;
r
=
svc_
scandir_ok
(
scandir
)
;
if
(
r
<
0
)
log_dieusys
(
LOG_EXIT_SYS
,
"check: "
,
scandir
)
;
if
(
r
)
{
...
...
@@ -184,6 +184,7 @@ int main(int argc, char const *const *argv, char const *const *envp)
char
const
*
newenv
[
MAXENV
+
1
]
;
char
const
*
const
*
genv
=
0
;
char
const
*
signal
;
char
str
[
UINT_FMT
]
;
stralloc
scandir
=
STRALLOC_ZERO
;
stralloc
envdir
=
STRALLOC_ZERO
;
...
...
@@ -220,8 +221,12 @@ int main(int argc, char const *const *argv, char const *const *envp)
case
'l'
:
if
(
!
stralloc_cats
(
&
scandir
,
l
.
arg
)
||
!
stralloc_0
(
&
scandir
))
str
[
uint_fmt
(
str
,
SS_MAX_PATH
)]
=
0
;
if
(
strlen
(
l
.
arg
)
>
SS_MAX_PATH
)
log_die
(
LOG_EXIT_USER
,
"live path is too long -- it can not exceed "
,
str
)
;
if
(
!
auto_stra
(
&
scandir
,
l
.
arg
))
log_die_nomem
(
"stralloc"
)
;
break
;
...
...
@@ -319,7 +324,7 @@ int main(int argc, char const *const *argv, char const *const *envp)
return
0
;
}
r
=
scandir_ok
(
scandir
.
s
)
;
r
=
svc_
scandir_ok
(
scandir
.
s
)
;
if
(
!
r
)
log_diesys
(
LOG_EXIT_SYS
,
"scandir: "
,
scandir
.
s
,
" is not running"
)
;
else
if
(
r
<
0
)
log_dieusys
(
LOG_EXIT_SYS
,
"check: "
,
scandir
.
s
)
;
...
...
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