diff options
| author | Dave Love | 1999-11-02 23:10:56 +0000 |
|---|---|---|
| committer | Dave Love | 1999-11-02 23:10:56 +0000 |
| commit | e69dcd60c507eabc517f8c4c6d10a6e7b52bda65 (patch) | |
| tree | daa6482b126895f68d8d4f93abb529ce2b786665 /src | |
| parent | 827a1788e0696a249c0affa70e0026d937ffb361 (diff) | |
| download | emacs-e69dcd60c507eabc517f8c4c6d10a6e7b52bda65.tar.gz emacs-e69dcd60c507eabc517f8c4c6d10a6e7b52bda65.zip | |
Use SIGCHLD, not SIGCLD (not in glibc 2.1).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | 1999-11-02 Dave Love <fx@gnu.org> | 1 | 1999-11-02 Dave Love <fx@gnu.org> |
| 2 | 2 | ||
| 3 | * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1). | ||
| 4 | |||
| 3 | * process.c: Define _GNU_SOURCE before config.h to get strsignal | 5 | * process.c: Define _GNU_SOURCE before config.h to get strsignal |
| 4 | declared with glibc2. | 6 | declared with glibc2. |
| 5 | 7 | ||
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. */ | |||
| 77 | #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx"); | 77 | #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx"); |
| 78 | 78 | ||
| 79 | #undef PTY_TTY_NAME_SPRINTF | 79 | #undef PTY_TTY_NAME_SPRINTF |
| 80 | /* This used to use SIGCLD, but that doesn't appear in glibc 2.1. */ | ||
| 80 | #define PTY_TTY_NAME_SPRINTF \ | 81 | #define PTY_TTY_NAME_SPRINTF \ |
| 81 | { \ | 82 | { \ |
| 82 | char *ptsname (), *ptyname; \ | 83 | char *ptsname (), *ptyname; \ |
| 83 | \ | 84 | \ |
| 84 | sigblock (sigmask (SIGCLD)); \ | 85 | sigblock (sigmask (SIGCHLD)); \ |
| 85 | if (grantpt (fd) == -1) \ | 86 | if (grantpt (fd) == -1) \ |
| 86 | { close (fd); return -1; } \ | 87 | { close (fd); return -1; } \ |
| 87 | sigunblock (sigmask (SIGCLD)); \ | 88 | sigunblock (sigmask (SIGCHLD)); \ |
| 88 | if (unlockpt (fd) == -1) \ | 89 | if (unlockpt (fd) == -1) \ |
| 89 | { close (fd); return -1; } \ | 90 | { close (fd); return -1; } \ |
| 90 | if (!(ptyname = ptsname (fd))) \ | 91 | if (!(ptyname = ptsname (fd))) \ |