Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
39834b1d
Commit
39834b1d
authored
Dec 26, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: Log scripts running
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
a4525522
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
util.c
util.c
+5
-1
No files found.
util.c
View file @
39834b1d
...
@@ -459,13 +459,17 @@ int run_scripts(char *action)
...
@@ -459,13 +459,17 @@ int run_scripts(char *action)
struct
script
*
script
;
struct
script
*
script
;
int
ret
=
0
;
int
ret
=
0
;
pr_debug
(
"Running %s scripts
\n
"
,
action
);
if
(
setenv
(
"CRTOOLS_SCRIPT_ACTION"
,
action
,
1
))
{
if
(
setenv
(
"CRTOOLS_SCRIPT_ACTION"
,
action
,
1
))
{
pr_perror
(
"Can't set CRTOOLS_SCRIPT_ACTION=%s"
,
action
);
pr_perror
(
"Can't set CRTOOLS_SCRIPT_ACTION=%s"
,
action
);
return
-
1
;
return
-
1
;
}
}
list_for_each_entry
(
script
,
&
opts
.
scripts
,
node
)
list_for_each_entry
(
script
,
&
opts
.
scripts
,
node
)
{
pr_debug
(
"
\t
[%s]
\n
"
,
script
->
path
);
ret
|=
system
(
script
->
path
);
ret
|=
system
(
script
->
path
);
}
unsetenv
(
"CRTOOLS_SCRIPT_ACTION"
);
unsetenv
(
"CRTOOLS_SCRIPT_ACTION"
);
return
ret
;
return
ret
;
...
...
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