Sync from SUSE:ALP:Source:Standard:1.0 gpm revision f95c3d2f3c2c191b4a86673a46e71e27

This commit is contained in:
2024-10-14 14:23:19 +02:00
commit 388585dd00
32 changed files with 2976 additions and 0 deletions

16
gpm-close-fds.patch Normal file
View File

@@ -0,0 +1,16 @@
--- src/daemon/startup.c.close-fds 2008-06-13 10:08:19.000000000 +0200
+++ src/daemon/startup.c 2008-12-02 10:11:12.000000000 +0100
@@ -135,6 +135,13 @@ void startup(int argc, char **argv)
check_uniqueness();
gpm_report(GPM_PR_INFO,GPM_MESS_STARTED);
+ // close extra fds
+ if (option.run_status == GPM_RUN_STARTUP ) {
+ close(0);
+ close(1);
+ close(2);
+ }
+
//return mouse_table[1].fd; /* the second is handled in the main() */
/****************** OLD CODE from gpn.c END ***********************/