Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
18
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
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
cellframe
cellframe-sdk
Commits
e945a509
Commit
e945a509
authored
4 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[+] Added check if esocket was deleted on previous loop iteration
parent
ddb06ac4
No related branches found
No related tags found
No related merge requests found
Pipeline
#6946
passed with stage
Stage: analyze
in 13 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
dap-sdk/net/core/dap_worker.c
+5
-0
5 additions, 0 deletions
dap-sdk/net/core/dap_worker.c
dap-sdk/net/core/include/dap_worker.h
+1
-0
1 addition, 0 deletions
dap-sdk/net/core/include/dap_worker.h
with
7 additions
and
1 deletion
CMakeLists.txt
+
1
−
1
View file @
e945a509
...
...
@@ -2,7 +2,7 @@ project(cellframe-sdk C)
cmake_minimum_required
(
VERSION 2.8
)
set
(
CMAKE_C_STANDARD 11
)
set
(
CELLFRAME_SDK_NATIVE_VERSION
"2.6-10
2
"
)
set
(
CELLFRAME_SDK_NATIVE_VERSION
"2.6-10
3
"
)
add_definitions
(
"-DCELLFRAME_SDK_VERSION=
\"
${
CELLFRAME_SDK_NATIVE_VERSION
}
\"
"
)
set
(
DAPSDK_MODULES
""
)
...
...
This diff is collapsed.
Click to expand it.
dap-sdk/net/core/dap_worker.c
+
5
−
0
View file @
e945a509
...
...
@@ -179,6 +179,10 @@ void *dap_worker_thread(void *arg)
l_flag_nval
=
false
;
#elif defined ( DAP_EVENTS_CAPS_POLL)
short
l_cur_events
=
l_worker
->
poll
[
n
].
revents
;
if
(
l_worker
->
poll
[
n
].
fd
==
-
1
)
// If it was deleted on previous iterations
continue
;
if
(
!
l_cur_events
)
// No events for this socket
continue
;
l_flag_hup
=
l_cur_events
&
POLLHUP
;
...
...
@@ -645,6 +649,7 @@ void *dap_worker_thread(void *arg)
log_it
(
L_NOTICE
,
"Worker :%u finished"
,
l_worker
->
id
);
return
NULL
;
}
}
#ifdef DAP_EVENTS_CAPS_POLL
/***********************************************************/
...
...
This diff is collapsed.
Click to expand it.
dap-sdk/net/core/include/dap_worker.h
+
1
−
0
View file @
e945a509
...
...
@@ -43,6 +43,7 @@ typedef struct dap_worker
// Signal to exit
bool
signal_exit
;
// worker control queues
dap_events_socket_t
*
queue_es_new
;
// Queue socket for new socket
dap_events_socket_t
**
queue_es_new_input
;
// Queue socket for new socket
...
...
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