Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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
vlc-1.1
Commits
d72063d6
Commit
d72063d6
authored
Sep 21, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix signal number
parent
ad87b924
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
modules/control/signals.c
modules/control/signals.c
+1
-4
No files found.
modules/control/signals.c
View file @
d72063d6
...
@@ -45,7 +45,6 @@ vlc_module_end ();
...
@@ -45,7 +45,6 @@ vlc_module_end ();
struct
intf_sys_t
struct
intf_sys_t
{
{
vlc_thread_t
thread
;
vlc_thread_t
thread
;
int
signum
;
};
};
static
int
Open
(
vlc_object_t
*
obj
)
static
int
Open
(
vlc_object_t
*
obj
)
...
@@ -56,7 +55,6 @@ static int Open (vlc_object_t *obj)
...
@@ -56,7 +55,6 @@ static int Open (vlc_object_t *obj)
if
(
p_sys
==
NULL
)
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
p_sys
->
signum
=
0
;
intf
->
p_sys
=
p_sys
;
intf
->
p_sys
=
p_sys
;
if
(
vlc_clone
(
&
p_sys
->
thread
,
SigThread
,
obj
,
VLC_THREAD_PRIORITY_LOW
))
if
(
vlc_clone
(
&
p_sys
->
thread
,
SigThread
,
obj
,
VLC_THREAD_PRIORITY_LOW
))
...
@@ -89,7 +87,6 @@ static void Close (vlc_object_t *obj)
...
@@ -89,7 +87,6 @@ static void Close (vlc_object_t *obj)
static
void
*
SigThread
(
void
*
data
)
static
void
*
SigThread
(
void
*
data
)
{
{
intf_thread_t
*
obj
=
data
;
intf_thread_t
*
obj
=
data
;
intf_sys_t
*
p_sys
=
obj
->
p_sys
;
sigset_t
set
;
sigset_t
set
;
sigemptyset
(
&
set
);
sigemptyset
(
&
set
);
...
@@ -119,7 +116,7 @@ static void *SigThread (void *data)
...
@@ -119,7 +116,7 @@ static void *SigThread (void *data)
case
SIGTERM
:
case
SIGTERM
:
case
SIGQUIT
:
case
SIGQUIT
:
msg_Err
(
obj
,
"Caught %s signal, exiting..."
,
msg_Err
(
obj
,
"Caught %s signal, exiting..."
,
strsignal
(
p_sys
->
signum
));
strsignal
(
signum
));
vlc_object_kill
(
obj
->
p_libvlc
);
vlc_object_kill
(
obj
->
p_libvlc
);
break
;
break
;
}
}
...
...
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