Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
86c8ef3f
Commit
86c8ef3f
authored
Feb 03, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc: use SETMASK instead of BLOCK
We don't really want to inherit the blocked signal mask from our parent.
parent
1ea58b26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bin/vlc.c
bin/vlc.c
+2
-2
No files found.
bin/vlc.c
View file @
86c8ef3f
...
@@ -160,7 +160,7 @@ int main( int i_argc, const char *ppsz_argv[] )
...
@@ -160,7 +160,7 @@ int main( int i_argc, const char *ppsz_argv[] )
* Furthermore the handler must not be set to SIG_IGN (see above).
* Furthermore the handler must not be set to SIG_IGN (see above).
* We cannot pragmatically handle EINTR, short reads and short writes
* We cannot pragmatically handle EINTR, short reads and short writes
* in every code paths (including underlying libraries). So we just
* in every code paths (including underlying libraries). So we just
* block SIGCHLD in all threads, and dequeue it
with sigwait()
below. */
* block SIGCHLD in all threads, and dequeue it below. */
sigaddset
(
&
set
,
SIGCHLD
);
sigaddset
(
&
set
,
SIGCHLD
);
#ifdef HAVE_MAEMO
#ifdef HAVE_MAEMO
...
@@ -171,7 +171,7 @@ int main( int i_argc, const char *ppsz_argv[] )
...
@@ -171,7 +171,7 @@ int main( int i_argc, const char *ppsz_argv[] )
}
}
#endif
#endif
/* Block all these signals */
/* Block all these signals */
pthread_sigmask
(
SIG_
BLOC
K
,
&
set
,
NULL
);
pthread_sigmask
(
SIG_
SETMAS
K
,
&
set
,
NULL
);
/* Note that FromLocale() can be used before libvlc is initialized */
/* Note that FromLocale() can be used before libvlc is initialized */
const
char
*
argv
[
i_argc
+
4
];
const
char
*
argv
[
i_argc
+
4
];
...
...
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