diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-04-07 20:54:00 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-04-07 20:54:00 +0900 |
commit | c4dadfbd47b200b04c59b72ed53948f964ef9cd6 (patch) | |
tree | c680becd816b15cb883cb741c67fd9a825b80dc4 /ext/pty | |
parent | b473d304d449b520a967e45b7d5d5ecb8556b4c3 (diff) |
Fix a typo, missing `P` in `SETPGRP_VOID`
Diffstat (limited to 'ext/pty')
-rw-r--r-- | ext/pty/pty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 49d92d15d4..6a896ce52f 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 */ |