Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e47ac35d
Commit
e47ac35d
authored
Nov 15, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 15, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Own X11 errorhandler to locate X11 errors. Useful only with -sync.
parent
ebc2b778
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
main.c
misc/main.c
+9
-0
No files found.
misc/main.c
View file @
e47ac35d
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
* Copyright 1994 Alexandre Julliard
* Copyright 1994 Alexandre Julliard
*/
*/
#include <signal.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
...
@@ -979,6 +980,12 @@ static void called_at_exit(void)
...
@@ -979,6 +980,12 @@ static void called_at_exit(void)
DeleteCriticalSection
(
HEAP_SystemLock
);
DeleteCriticalSection
(
HEAP_SystemLock
);
}
}
static
int
WINE_X11_ErrorHandler
(
Display
*
display
,
XErrorEvent
*
error_evt
)
{
kill
(
getpid
(),
SIGHUP
);
/* force an entry in the debugger */
return
0
;
}
/***********************************************************************
/***********************************************************************
* MAIN_WineInit
* MAIN_WineInit
*
*
...
@@ -1021,6 +1028,8 @@ BOOL32 MAIN_WineInit( int *argc, char *argv[] )
...
@@ -1021,6 +1028,8 @@ BOOL32 MAIN_WineInit( int *argc, char *argv[] )
MAIN_ParseOptions
(
argc
,
argv
);
MAIN_ParseOptions
(
argc
,
argv
);
if
(
Options
.
synchronous
)
XSetErrorHandler
(
WINE_X11_ErrorHandler
);
if
(
Options
.
desktopGeometry
&&
Options
.
managed
)
if
(
Options
.
desktopGeometry
&&
Options
.
managed
)
{
{
#if 0
#if 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