Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
d72063d6
Commit
d72063d6
authored
Sep 21, 2008
by
Rémi Denis-Courmont
Browse files
Fix signal number
parent
ad87b924
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/control/signals.c
View file @
d72063d6
...
...
@@ -45,7 +45,6 @@ vlc_module_end ();
struct
intf_sys_t
{
vlc_thread_t
thread
;
int
signum
;
};
static
int
Open
(
vlc_object_t
*
obj
)
...
...
@@ -56,7 +55,6 @@ static int Open (vlc_object_t *obj)
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
p_sys
->
signum
=
0
;
intf
->
p_sys
=
p_sys
;
if
(
vlc_clone
(
&
p_sys
->
thread
,
SigThread
,
obj
,
VLC_THREAD_PRIORITY_LOW
))
...
...
@@ -89,7 +87,6 @@ static void Close (vlc_object_t *obj)
static
void
*
SigThread
(
void
*
data
)
{
intf_thread_t
*
obj
=
data
;
intf_sys_t
*
p_sys
=
obj
->
p_sys
;
sigset_t
set
;
sigemptyset
(
&
set
);
...
...
@@ -119,7 +116,7 @@ static void *SigThread (void *data)
case
SIGTERM
:
case
SIGQUIT
:
msg_Err
(
obj
,
"Caught %s signal, exiting..."
,
strsignal
(
p_sys
->
signum
));
strsignal
(
signum
));
vlc_object_kill
(
obj
->
p_libvlc
);
break
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment