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
5eff95a0
Commit
5eff95a0
authored
Feb 12, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assume we ahve setenv() and unsetenv()
parent
c7681744
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
bin/vlc.c
bin/vlc.c
+4
-6
No files found.
bin/vlc.c
View file @
5eff95a0
...
...
@@ -91,24 +91,22 @@ int main( int i_argc, const char *ppsz_argv[] )
/* Restore SIGCHLD in case our parent process ignores it. */
signal
(
SIGCHLD
,
SIG_DFL
);
#ifdef HAVE_SETENV
# ifndef NDEBUG
#ifndef NDEBUG
/* Activate malloc checking routines to detect heap corruptions. */
setenv
(
"MALLOC_CHECK_"
,
"2"
,
1
);
/* Disable the ugly Gnome crash dialog so that we properly segfault */
setenv
(
"GNOME_DISABLE_CRASH_DIALOG"
,
"1"
,
1
);
#
endif
#endif
#
ifdef TOP_BUILDDIR
#ifdef TOP_BUILDDIR
setenv
(
"VLC_PLUGIN_PATH"
,
TOP_BUILDDIR
"/modules"
,
1
);
#
endif
#endif
/* Clear the X.Org startup notification ID. Otherwise the UI might try to
* change the environment while the process is multi-threaded. That could
* crash. Screw you X.Org. Next time write a thread-safe specification. */
unsetenv
(
"DESKTOP_STARTUP_ID"
);
#endif
#ifndef ALLOW_RUN_AS_ROOT
if
(
geteuid
()
==
0
)
...
...
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