Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
systemd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
steam
systemd
Commits
7ceba241
Commit
7ceba241
authored
Sep 13, 2012
by
Lennart Poettering
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manager: fix the build
parent
915b3753
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
src/core/manager.c
src/core/manager.c
+4
-4
src/core/path.c
src/core/path.c
+4
-2
No files found.
src/core/manager.c
View file @
7ceba241
...
...
@@ -2013,7 +2013,7 @@ bool manager_unit_pending_inactive(Manager *m, const char *name) {
}
void
manager_check_finished
(
Manager
*
m
)
{
char
firmware
[
FORMAT_TIMESPAN_MAX
],
loader
[
FORMAT_TIMESPAN_MAX
],
userspace
[
FORMAT_TIMESPAN_MAX
],
initrd
[
FORMAT_TIMESPAN_MAX
],
kernel
[
FORMAT_TIMESPAN_MAX
],
sum
[
FORMAT_TIMESPAN_MAX
];
char
userspace
[
FORMAT_TIMESPAN_MAX
],
initrd
[
FORMAT_TIMESPAN_MAX
],
kernel
[
FORMAT_TIMESPAN_MAX
],
sum
[
FORMAT_TIMESPAN_MAX
];
usec_t
firmware_usec
,
loader_usec
,
kernel_usec
,
initrd_usec
,
userspace_usec
,
total_usec
;
assert
(
m
);
...
...
@@ -2039,10 +2039,10 @@ void manager_check_finished(Manager *m) {
* m->loader_usec.monotonic should be considered
* negative values. */
firmware_usec
=
m
->
firmware_
usec
.
monotonic
-
m
->
loader_timestamp
.
monotonic
;
loader_usec
=
m
->
loader_
usec
.
monotonic
-
m
->
kernel_usec
.
monotonic
;
firmware_usec
=
m
->
firmware_
timestamp
.
monotonic
-
m
->
loader_timestamp
.
monotonic
;
loader_usec
=
m
->
loader_
timestamp
.
monotonic
-
m
->
kernel_timestamp
.
monotonic
;
userspace_usec
=
m
->
finish_timestamp
.
monotonic
-
m
->
userspace_timestamp
.
monotonic
;
total_usec
=
m
->
firmware_
usec
.
monotonic
+
m
->
finish_timestamp
.
monotonic
;
total_usec
=
m
->
firmware_
timestamp
.
monotonic
+
m
->
finish_timestamp
.
monotonic
;
if
(
dual_timestamp_is_set
(
&
m
->
initrd_timestamp
))
{
...
...
src/core/path.c
View file @
7ceba241
...
...
@@ -73,14 +73,16 @@ int path_spec_watch(PathSpec *s, Unit *u) {
goto
fail
;
}
if
((
s
->
primary_wd
=
inotify_add_watch
(
s
->
inotify_fd
,
k
,
flags_table
[
s
->
type
]))
>=
0
)
s
->
primary_wd
=
inotify_add_watch
(
s
->
inotify_fd
,
k
,
flags_table
[
s
->
type
]);
if
(
s
->
primary_wd
>=
0
)
exists
=
true
;
do
{
int
flags
;
/* This assumes the path was passed through path_kill_slashes()! */
if
(
!
(
slash
=
strrchr
(
k
,
'/'
)))
slash
=
strrchr
(
k
,
'/'
);
if
(
!
slash
)
break
;
/* Trim the path at the last slash. Keep the slash if it's the root dir. */
...
...
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