Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
System Manager
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
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
system
System Manager
Commits
7dd001b5
Commit
7dd001b5
authored
7 months ago
by
Amin Ben Romdhane
Browse files
Options
Downloads
Patches
Plain Diff
Update comments
parent
94412338
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!6
Update the handling of process Instances
Pipeline
#180922
passed
7 months ago
Stage: static_code_analysis
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/processes.c
+5
-1
5 additions, 1 deletion
src/processes.c
src/utils.c
+3
-3
3 additions, 3 deletions
src/utils.c
with
8 additions
and
4 deletions
src/processes.c
+
5
−
1
View file @
7dd001b5
...
...
@@ -173,6 +173,10 @@ static void broadcast_add_del_event(int diff)
struct
blob_buf
bb
=
{
0
};
char
method_name
[
64
]
=
{
0
};
// On the first run, add and delete events are managed by the instance refresh mechanism defined in bbfdm
if
(
g_process_ctx
.
process_num
==
0
)
return
;
memset
(
&
bb
,
0
,
sizeof
(
struct
blob_buf
));
blob_buf_init
(
&
bb
,
0
);
...
...
@@ -322,7 +326,7 @@ static void run_refresh_process_list(void)
static
void
ubus_call_complete_cb
(
struct
ubus_request
*
req
,
int
ret
)
{
BBF_
ERR
(
"
ubus callback completed
, line=%d"
,
__LINE__
);
BBF_
DEBUG
(
"'tr069'
ubus callback completed
"
);
run_refresh_process_list
();
FREE
(
req
);
}
...
...
This diff is collapsed.
Click to expand it.
src/utils.c
+
3
−
3
View file @
7dd001b5
...
...
@@ -236,12 +236,12 @@ int sysmngr_ubus_invoke_async(struct ubus_context *ubus_ctx, const char *obj, co
uint32_t
id
;
if
(
ubus_ctx
==
NULL
)
{
BBF_ERR
(
"Failed to connect with
UB
us, error: %d"
,
errno
);
BBF_ERR
(
"Failed to connect with
ub
us, error:
'
%d
'
"
,
errno
);
return
-
1
;
}
if
(
ubus_lookup_id
(
ubus_ctx
,
obj
,
&
id
))
{
BBF_ERR
(
"Failed to lookup
UB
us object: %s"
,
obj
);
BBF_ERR
(
"Failed to lookup
ub
us object:
'
%s
'
"
,
obj
);
return
-
1
;
}
...
...
@@ -252,7 +252,7 @@ int sysmngr_ubus_invoke_async(struct ubus_context *ubus_ctx, const char *obj, co
}
if
(
ubus_invoke_async
(
ubus_ctx
,
id
,
method
,
msg
,
req
))
{
BBF_ERR
(
"
UB
us async call failed for object: %s, method: %s"
,
obj
,
method
);
BBF_ERR
(
"
ub
us async call failed for object:
'
%s
'
, method:
'
%s
'
"
,
obj
,
method
);
FREE
(
req
);
return
-
1
;
}
...
...
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