Skip to content

Commit adeef67

Browse files
committed
Remove configure probe for setsid.
setsid() is in SUSv2 and all targeted Unix systems have it. Retain a HAVE_SETSID macro, defined on Unix only. That's easier to understand than !defined(WIN32), for the optional code it governs. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com
1 parent 098f4d8 commit adeef67

File tree

5 files changed

+2
-6
lines changed

5 files changed

+2
-6
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16039,7 +16039,7 @@ fi
1603916039
LIBS_including_readline="$LIBS"
1604016040
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
1604116041

16042-
for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred inet_pton kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pthread_is_threaded_np readlink readv setproctitle setproctitle_fast setsid strchrnul strsignal symlink syncfs sync_file_range uselocale wcstombs_l writev
16042+
for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred inet_pton kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pthread_is_threaded_np readlink readv setproctitle setproctitle_fast strchrnul strsignal symlink syncfs sync_file_range uselocale wcstombs_l writev
1604316043
do :
1604416044
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1604516045
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,6 @@ AC_CHECK_FUNCS(m4_normalize([
18091809
readv
18101810
setproctitle
18111811
setproctitle_fast
1812-
setsid
18131812
strchrnul
18141813
strsignal
18151814
symlink

src/include/pg_config.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,6 @@
469469
/* Define to 1 if you have the `setproctitle_fast' function. */
470470
#undef HAVE_SETPROCTITLE_FAST
471471

472-
/* Define to 1 if you have the `setsid' function. */
473-
#undef HAVE_SETSID
474-
475472
/* Define to 1 if the system has the type `socklen_t'. */
476473
#undef HAVE_SOCKLEN_T
477474

src/include/port.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ extern bool wait_result_is_any_signal(int exit_status, bool include_command_not_
525525
*/
526526
#ifndef WIN32
527527
#define HAVE_GETRLIMIT 1
528+
#define HAVE_SETSID 1
528529
#define HAVE_SHM_OPEN 1
529530
#endif
530531

src/tools/msvc/Solution.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ sub GenerateFiles
350350
HAVE_SETENV => undef,
351351
HAVE_SETPROCTITLE => undef,
352352
HAVE_SETPROCTITLE_FAST => undef,
353-
HAVE_SETSID => undef,
354353
HAVE_SOCKLEN_T => 1,
355354
HAVE_SPINLOCKS => 1,
356355
HAVE_STDBOOL_H => 1,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy