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
68ef5e03
Commit
68ef5e03
authored
Apr 06, 2002
by
Huw D M Davies
Committed by
Alexandre Julliard
Apr 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't hang around for a minute if we can't exec the clipboard server.
parent
392f6f87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
clipboard.c
windows/x11drv/clipboard.c
+15
-1
No files found.
windows/x11drv/clipboard.c
View file @
68ef5e03
...
...
@@ -235,6 +235,7 @@ BOOL X11DRV_CLIPBOARD_LaunchServer()
char
clearSelection
[
8
]
=
"0"
;
int
persistent_selection
=
1
;
HKEY
hkey
;
int
fd
[
2
],
err
;
/* If persistant selection has been disabled in the .winerc Clipboard section,
* don't launch the server
...
...
@@ -258,6 +259,10 @@ BOOL X11DRV_CLIPBOARD_LaunchServer()
* take ownership of the X selection and continue to service selection
* requests from other apps.
*/
if
(
pipe
(
fd
)
==
-
1
)
return
FALSE
;
fcntl
(
fd
[
1
],
F_SETFD
,
1
);
/* set close on exec */
selectionWindow
=
selectionPrevWindow
;
if
(
!
fork
()
)
{
...
...
@@ -267,6 +272,7 @@ BOOL X11DRV_CLIPBOARD_LaunchServer()
int
dbgClasses
=
0
;
char
selMask
[
8
],
dbgClassMask
[
8
];
close
(
fd
[
0
]);
sprintf
(
selMask
,
"%d"
,
selectionAcquired
);
/* Build the debug class mask to pass to the server, by inheriting
...
...
@@ -287,8 +293,16 @@ BOOL X11DRV_CLIPBOARD_LaunchServer()
/* Exec Failed! */
perror
(
"Could not start Wine clipboard server"
);
exit
(
1
);
/* Exit the child process */
write
(
fd
[
1
],
&
err
,
sizeof
(
err
));
_exit
(
1
);
/* Exit the child process */
}
close
(
fd
[
1
]);
if
(
read
(
fd
[
0
],
&
err
,
sizeof
(
err
))
>
0
)
{
/* exec failed */
close
(
fd
[
0
]);
return
FALSE
;
}
close
(
fd
[
0
]);
/* Wait until the clipboard server acquires the selection.
* We must release the windows lock to enable Wine to process
...
...
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