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
17885728
Commit
17885728
authored
6 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
66-scandir: fix control file
parent
4fce0676
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-scandir.c
+13
-13
13 additions, 13 deletions
src/66/66-scandir.c
with
13 additions
and
13 deletions
src/66/66-scandir.c
+
13
−
13
View file @
17885728
...
...
@@ -140,23 +140,20 @@ int scandir_down(char const *scandir, char const *signal, char const *const *env
csig
[
2
]
=
'n'
;
csig
[
3
]
=
0
;
break
;
case
1
:
csig
[
1
]
=
'r'
;
csig
[
2
]
=
't'
;
csig
[
3
]
=
0
;
case
1
:
csig
[
1
]
=
'i'
;
csig
[
2
]
=
0
;
break
;
case
2
:
csig
[
1
]
=
'q'
;
csig
[
2
]
=
0
;
break
;
case
3
:
csig
[
1
]
=
's'
;
csig
[
2
]
=
't'
;
csig
[
3
]
=
0
;
case
3
:
csig
[
1
]
=
'0'
;
csig
[
2
]
=
0
;
break
;
case
4
:
csig
[
1
]
=
'6'
;
csig
[
2
]
=
0
;
break
;
case
5
:
csig
[
1
]
=
'p'
;
csig
[
2
]
=
't'
;
csig
[
3
]
=
0
;
case
5
:
csig
[
1
]
=
'7'
;
csig
[
2
]
=
0
;
break
;
default:
break
;
}
...
...
@@ -473,7 +470,7 @@ int write_bootlog(char const *live, char const *scandir, char const *scanname)
}
int
write_control
(
char
const
*
scandir
,
char
const
*
tre
e
,
char
const
*
filename
,
int
file
)
int
write_control
(
char
const
*
scandir
,
char
const
*
liv
e
,
char
const
*
filename
,
int
file
)
{
int
r
;
...
...
@@ -529,7 +526,7 @@ int write_control(char const *scandir,char const *tree, char const *filename, in
if
(
file
==
USR1
)
{
if
(
!
stralloc_cats
(
&
sa
,
S6_BINPREFIX
"s6-svscanctl -an -- "
))
retstralloc
(
0
,
"write_controlboot"
)
;
if
(
!
stralloc_cats
(
&
sa
,
bscan
))
retstralloc
(
0
,
"write_controlboot"
)
;
if
(
!
stralloc_cats
(
&
sa
,
"
\n
"
))
retstralloc
(
0
,
"write_controlboot"
)
;
goto
write
;
...
...
@@ -543,11 +540,14 @@ int write_control(char const *scandir,char const *tree, char const *filename, in
else
{
if
(
!
stralloc_cats
(
&
sa
,
EXECLINE_BINPREFIX
"foreground { "
SS_BINPREFIX
"66-all -v3 -l "
))
retstralloc
(
0
,
"write_control"
)
;
if
(
!
stralloc_cats
(
&
sa
,
tre
e
))
retstralloc
(
0
,
"write_control"
)
;
if
(
!
stralloc_cats
(
&
sa
,
liv
e
))
retstralloc
(
0
,
"write_control"
)
;
if
(
!
stralloc_cats
(
&
sa
,
" down }
\n
"
))
retstralloc
(
0
,
"write_control"
)
;
}
switch
(
file
)
{
case
USR1
:
if
(
!
stralloc_cats
(
&
sa
,
S6_BINPREFIX
"s6-svscanctl -7 -- "
))
retstralloc
(
0
,
"write_controlboot"
)
;
break
;
case
USR2
:
if
(
!
stralloc_cats
(
&
sa
,
S6_BINPREFIX
"s6-svscanctl -0 -- "
))
retstralloc
(
0
,
"write_controlboot"
)
;
break
;
...
...
@@ -555,7 +555,7 @@ int write_control(char const *scandir,char const *tree, char const *filename, in
if
(
!
stralloc_cats
(
&
sa
,
S6_BINPREFIX
"s6-svscanctl -t -- "
))
retstralloc
(
0
,
"write_controlboot"
)
;
break
;
case
QUIT
:
if
(
!
stralloc_cats
(
&
sa
,
S6_BINPREFIX
"s6-svscanctl -
7
-- "
))
retstralloc
(
0
,
"write_controlboot"
)
;
if
(
!
stralloc_cats
(
&
sa
,
S6_BINPREFIX
"s6-svscanctl -
q
-- "
))
retstralloc
(
0
,
"write_controlboot"
)
;
break
;
case
INT
:
if
(
!
stralloc_cats
(
&
sa
,
S6_BINPREFIX
"s6-svscanctl -6 -- "
))
retstralloc
(
0
,
"write_controlboot"
)
;
...
...
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