Fix a typo, missing P in SETPGRP_VOID

This commit is contained in:
Nobuyoshi Nakada 2024-04-07 20:54:00 +09:00
parent b473d304d4
commit c4dadfbd47
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -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 */