From e69dcd60c507eabc517f8c4c6d10a6e7b52bda65 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 2 Nov 1999 23:10:56 +0000 Subject: [PATCH] Use SIGCHLD, not SIGCLD (not in glibc 2.1). --- src/ChangeLog | 2 ++ src/s/gnu-linux.h | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 94d9be178da..e025345d471 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 1999-11-02 Dave Love + * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1). + * process.c: Define _GNU_SOURCE before config.h to get strsignal declared with glibc2. diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index f5419a6e3af..86fc78b8b0f 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h @@ -77,14 +77,15 @@ Boston, MA 02111-1307, USA. */ #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx"); #undef PTY_TTY_NAME_SPRINTF +/* This used to use SIGCLD, but that doesn't appear in glibc 2.1. */ #define PTY_TTY_NAME_SPRINTF \ { \ char *ptsname (), *ptyname; \ \ - sigblock (sigmask (SIGCLD)); \ + sigblock (sigmask (SIGCHLD)); \ if (grantpt (fd) == -1) \ { close (fd); return -1; } \ - sigunblock (sigmask (SIGCLD)); \ + sigunblock (sigmask (SIGCHLD)); \ if (unlockpt (fd) == -1) \ { close (fd); return -1; } \ if (!(ptyname = ptsname (fd))) \ -- 2.39.5