From c4dadfbd47b200b04c59b72ed53948f964ef9cd6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 7 Apr 2024 20:54:00 +0900 Subject: [PATCH] Fix a typo, missing `P` in `SETPGRP_VOID` --- ext/pty/pty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 49d92d15d41d47..6a896ce52fb7e6 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -118,10 +118,10 @@ chfunc(void *data, char *errbuf, size_t errbuf_len) (void) setsid(); #else /* HAS_SETSID */ # ifdef HAVE_SETPGRP -# ifdef SETGRP_VOID +# ifdef SETPGRP_VOID if (setpgrp() == -1) ERROR_EXIT("setpgrp()"); -# else /* SETGRP_VOID */ +# else /* SETPGRP_VOID */ if (setpgrp(0, getpid()) == -1) ERROR_EXIT("setpgrp()"); { @@ -132,7 +132,7 @@ chfunc(void *data, char *errbuf, size_t errbuf_len) ERROR_EXIT("ioctl(TIOCNOTTY)"); close(i); } -# endif /* SETGRP_VOID */ +# endif /* SETPGRP_VOID */ # endif /* HAVE_SETPGRP */ #endif /* HAS_SETSID */