Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dvblast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
dvblast
Commits
8f672563
Commit
8f672563
authored
Aug 25, 2011
by
Georgi Chorbadzhiyski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When CMD_SHUTDOWN is received set b_exit_now flag to exit cleanly.
parent
32c854f8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
comm.c
comm.c
+4
-4
dvblast.h
dvblast.h
+1
-0
No files found.
comm.c
View file @
8f672563
...
@@ -148,10 +148,10 @@ void comm_Read( void )
...
@@ -148,10 +148,10 @@ void comm_Read( void )
break
;
break
;
case
CMD_SHUTDOWN
:
case
CMD_SHUTDOWN
:
msg_Err
(
NULL
,
"shutdown via comm"
)
;
b_exit_now
=
1
;
exit
(
EXIT_SUCCESS
)
;
i_answer
=
RET_OK
;
/* this is a bit violent, but hey, closing everything cleanly
i_answer_size
=
0
;
* would do approximately the same */
break
;
default:
default:
msg_Err
(
NULL
,
"wrong command %u"
,
i_command
);
msg_Err
(
NULL
,
"wrong command %u"
,
i_command
);
...
...
dvblast.h
View file @
8f672563
...
@@ -166,6 +166,7 @@ extern uint8_t *p_network_name;
...
@@ -166,6 +166,7 @@ extern uint8_t *p_network_name;
extern
size_t
i_network_name_size
;
extern
size_t
i_network_name_size
;
extern
mtime_t
i_wallclock
;
extern
mtime_t
i_wallclock
;
extern
volatile
int
b_hup_received
;
extern
volatile
int
b_hup_received
;
extern
volatile
int
b_exit_now
;
extern
int
i_comm_fd
;
extern
int
i_comm_fd
;
extern
char
*
psz_udp_src
;
extern
char
*
psz_udp_src
;
extern
int
i_asi_adapter
;
extern
int
i_asi_adapter
;
...
...
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