mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[getpid] Removed check for HAVE_GETPID
It is assumed that every supported system has getpid(). (cherry picked from commit 7545b8093def0ba23e0d1321b8edb29636cee29e)
This commit is contained in:
parent
9eaf7d3096
commit
ca434fcd7a
@ -448,9 +448,6 @@
|
|||||||
/* Define to 1 if you have the `getpgrp' function. */
|
/* Define to 1 if you have the `getpgrp' function. */
|
||||||
#mesondefine HAVE_GETPGRP
|
#mesondefine HAVE_GETPGRP
|
||||||
|
|
||||||
/* Define to 1 if you have the `getpid' function. */
|
|
||||||
#mesondefine HAVE_GETPID
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `getpwnam' function. */
|
/* Define to 1 if you have the `getpwnam' function. */
|
||||||
#mesondefine HAVE_GETPWNAM
|
#mesondefine HAVE_GETPWNAM
|
||||||
|
|
||||||
|
@ -336,7 +336,6 @@ AC_CHECK_FUNCS(mkstemps)
|
|||||||
# These aren't probably needed now, as they are commented in links.h.
|
# These aren't probably needed now, as they are commented in links.h.
|
||||||
# I've no idea about their historical background, but I keep them here
|
# I've no idea about their historical background, but I keep them here
|
||||||
# just in the case they will help later. --pasky
|
# just in the case they will help later. --pasky
|
||||||
AC_CHECK_FUNCS(getpid, HAVE_GETPID=yes)
|
|
||||||
AC_CHECK_FUNCS(setpgid getpgid setpgrp getpgrp)
|
AC_CHECK_FUNCS(setpgid getpgid setpgrp getpgrp)
|
||||||
AC_CHECK_FUNCS(raise, HAVE_RAISE=yes)
|
AC_CHECK_FUNCS(raise, HAVE_RAISE=yes)
|
||||||
AC_CHECK_FUNCS(kill, HAVE_KILL=yes)
|
AC_CHECK_FUNCS(kill, HAVE_KILL=yes)
|
||||||
@ -346,7 +345,7 @@ AC_CHECK_FUNCS(fpathconf, HAVE_FPATHCONF=yes)
|
|||||||
AC_CHECK_FUNCS(poll, HAVE_POLL=yes)
|
AC_CHECK_FUNCS(poll, HAVE_POLL=yes)
|
||||||
|
|
||||||
if test x"$HAVE_RAISE" = x; then
|
if test x"$HAVE_RAISE" = x; then
|
||||||
if test x"$HAVE_KILL" = x || test x"$HAVE_GETPID" = x; then
|
if test x"$HAVE_KILL" = x; then
|
||||||
AC_MSG_ERROR([Unable to emulate raise()])
|
AC_MSG_ERROR([Unable to emulate raise()])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -862,10 +862,6 @@ if not conf_data.get('CONFIG_OS_DOS') and compiler.has_function('fork', prefix :
|
|||||||
conf_data.set('HAVE_FORK', 1)
|
conf_data.set('HAVE_FORK', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if compiler.has_function('getpid', prefix : '#include <unistd.h>')
|
|
||||||
conf_data.set('HAVE_GETPID', 1)
|
|
||||||
endif
|
|
||||||
|
|
||||||
if compiler.has_function('setpgid', prefix : '#include <unistd.h>')
|
if compiler.has_function('setpgid', prefix : '#include <unistd.h>')
|
||||||
conf_data.set('HAVE_SETPGID', 1)
|
conf_data.set('HAVE_SETPGID', 1)
|
||||||
endif
|
endif
|
||||||
|
@ -544,9 +544,7 @@ init_interlink(void)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
/* child */
|
/* child */
|
||||||
#ifdef HAVE_GETPID
|
|
||||||
master_pid = getpid();
|
master_pid = getpid();
|
||||||
#endif
|
|
||||||
close_terminal_pipes();
|
close_terminal_pipes();
|
||||||
}
|
}
|
||||||
bind_to_af_unix();
|
bind_to_af_unix();
|
||||||
|
@ -195,9 +195,7 @@ init(void)
|
|||||||
|| get_cmd_opt_bool("source")
|
|| get_cmd_opt_bool("source")
|
||||||
|| (fd = init_interlink()) == -1) {
|
|| (fd = init_interlink()) == -1) {
|
||||||
|
|
||||||
#ifdef HAVE_GETPID
|
|
||||||
master_pid = getpid();
|
master_pid = getpid();
|
||||||
#endif
|
|
||||||
parse_options_again();
|
parse_options_again();
|
||||||
init_b = 1;
|
init_b = 1;
|
||||||
init_modules(builtin_modules);
|
init_modules(builtin_modules);
|
||||||
|
@ -224,7 +224,7 @@ elinks_memrchr(const void *s, int c, size_t n)
|
|||||||
|
|
||||||
#ifndef HAVE_RAISE
|
#ifndef HAVE_RAISE
|
||||||
|
|
||||||
#if !defined(HAVE_KILL) || !defined(HAVE_GETPID)
|
#if !defined(HAVE_KILL)
|
||||||
#error The raise() stub function requires kill() and getpid()
|
#error The raise() stub function requires kill() and getpid()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user