From 8d0e545d32e69ac1b9e025ff23e34d176a6f2cb7 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 15:44:10 +0000 Subject: Apply patch gpm-1.20.7-sigemptyset.patch patch_name: gpm-1.20.7-sigemptyset.patch present_in_specfile: true --- diff --git a/src/prog/gpm-root.y b/src/prog/gpm-root.y index 069d801..f007fee 100644 --- a/src/prog/gpm-root.y +++ b/src/prog/gpm-root.y @@ -1196,11 +1196,7 @@ int main(int argc, char **argv) LOG_DAEMON : LOG_USER); /* reap your zombies */ childaction.sa_handler=reap_children; -#if defined(__GLIBC__) - __sigemptyset(&childaction.sa_mask); -#else /* __GLIBC__ */ - childaction.sa_mask=0; -#endif /* __GLIBC__ */ + sigemptyset(&childaction.sa_mask); childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */ sigaction(SIGCHLD,&childaction,NULL);