18 lines
643 B
Diff
18 lines
643 B
Diff
|
--- gpm-1.20.1/src/gpm.c.deadsocket 2007-03-23 16:59:42.000000000 +0100
|
||
|
+++ gpm-1.20.1/src/gpm.c 2007-03-23 17:10:10.000000000 +0100
|
||
|
@@ -544,7 +544,14 @@
|
||
|
* we can safely use micelist
|
||
|
*/
|
||
|
close(micelist->dev.fd);
|
||
|
+
|
||
|
+ close(ctlfd);
|
||
|
+ FD_CLR(ctlfd, &connSet);
|
||
|
wait_text_console();
|
||
|
+ ctlfd = listen_for_clients();
|
||
|
+ FD_SET(ctlfd, &connSet);
|
||
|
+ maxfd = max(maxfd, ctlfd);
|
||
|
+
|
||
|
/* reopen, reinit (the function is only used if we have one mouse device) */
|
||
|
if ((micelist->dev.fd = open(micelist->device, O_RDWR)) < 0)
|
||
|
gpm_report(GPM_PR_OOPS, GPM_MESS_OPEN, micelist->device);
|