* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
*
*****************************************************************************/
-static int generic_error_handler( edpy, eevent )
- Display *edpy;
- XErrorEvent *eevent;
+static int generic_error_handler(Display *edpy, XErrorEvent *eevent)
{
g.xerrno = eevent->error_code;
g.xerrreq = eevent->request_code;
g.xerrmin = eevent->minor_code;
+
+ return 0; /* XSetErrorHandler handlers return values are ignored */
}
/******************************************************************************
*
*****************************************************************************/
static void
-#if defined(__aix)
+#if defined(__aix) || defined(__linux__)
handle_SIGCLD(int sigNum)
#else
handle_SIGCLD(void)
*
* main
*/
-main( argc, argv )
- int argc;
- char **argv;
+int
+main(int argc, char **argv)
{
int tscreen;
XtInputId xtid;
sigemptyset(&svec.sa_mask);
svec.sa_flags = 0;
svec.sa_handler = handle_SIGCLD;
- (void) sigaction(SIGCLD, &svec, (struct sigaction *) NULL);
+ (void) sigaction(SIGCHLD, &svec, (struct sigaction *) NULL);
/*
* After this point, we need to trap all X and XIO errors.