changeset 26315:94eb27ce53aa

Use SIGCHLD, not SIGCLD (not in glibc 2.1).
author Dave Love <fx@gnu.org>
date Tue, 02 Nov 1999 23:09:35 +0000
parents 50166d2be629
children c3730cef09b2
files src/s/gnu-linux.h
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/gnu-linux.h	Tue Nov 02 22:44:28 1999 +0000
+++ b/src/s/gnu-linux.h	Tue Nov 02 23:09:35 1999 +0000
@@ -77,14 +77,15 @@
 #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)))		\