Skip to content

Commit

Permalink
Fix a typo, missing P in SETPGRP_VOID
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Apr 7, 2024
1 parent b473d30 commit c4dadfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/pty/pty.c
Expand Up @@ -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()");
{
Expand All @@ -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 */

Expand Down

0 comments on commit c4dadfb

Please sign in to comment.