Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d57374

Browse files
committed
Use poll(2) in preference to select(2), if available. This solves
problems in applications that may have a large number of files open,such that libpq's socket number exceeds the range supported by fd_set.From Chris Brown.
1 parent235d5fa commit1d57374

File tree

4 files changed

+167
-125
lines changed

4 files changed

+167
-125
lines changed

‎configure

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6888,7 +6888,9 @@ done
68886888
68896889
68906890
6891-
forac_headerin crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
6891+
6892+
6893+
forac_headerin crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
68926894
do
68936895
as_ac_Header=`echo"ac_cv_header_$ac_header"|$as_tr_sh`
68946896
ifeval"test\"\${$as_ac_Header+set}\" = set";then
@@ -10175,7 +10177,8 @@ test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
1017510177
1017610178
1017710179
10178-
forac_funcin cbrt fcvt getpeereid memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync utime utimes
10180+
10181+
forac_funcin cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask sysconf utime utimes waitpid
1017910182
do
1018010183
as_ac_var=`echo"ac_cv_func_$ac_func"|$as_tr_sh`
1018110184
echo"$as_me:$LINENO: checking for$ac_func">&5

‎configure.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $Header: /cvsroot/pgsql/configure.in,v 1.237 2003/02/19 04:04:04 momjian Exp $
2+
dnl $Header: /cvsroot/pgsql/configure.in,v 1.238 2003/03/06 03:16:55 tgl Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -675,7 +675,7 @@ fi
675675
##
676676

677677
dnl sys/socket.h is required by AC_FUNC_ACCEPT_ARGTYPES
678-
AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h])
678+
AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.hpoll.hpwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h])
679679

680680
# At least on IRIX, cpp test for netinet/tcp.h will fail unless
681681
# netinet/in.h is included first.
@@ -786,7 +786,7 @@ PGAC_FUNC_GETTIMEOFDAY_1ARG
786786
# SunOS doesn't handle negative byte comparisons properly with +/- return
787787
AC_FUNC_MEMCMP
788788

789-
AC_CHECK_FUNCS([cbrt fcvt getpeereid memmove pstat setproctitle setsid sigprocmask sysconfwaitpid dlopen fdatasyncutime utimes])
789+
AC_CHECK_FUNCS([cbrtdlopenfcvtfdatasyncgetpeereid memmovepollpstat setproctitle setsid sigprocmask sysconf utime utimes waitpid])
790790

791791
AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>])
792792

‎src/include/pg_config.h.in

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* or in pg_config.h afterwards. Of course, if you edit pg_config.h, then your
99
* changes will be overwritten the next time you run configure.
1010
*
11-
* $Id: pg_config.h.in,v 1.40 2003/02/19 04:04:04 momjian Exp $
11+
* $Id: pg_config.h.in,v 1.41 2003/03/06 03:16:55 tgl Exp $
1212
*/
1313

1414
#ifndefPG_CONFIG_H
@@ -341,6 +341,12 @@
341341
/* Set to 1 if you have <ieeefp.h> */
342342
#undef HAVE_IEEEFP_H
343343

344+
/* Set to 1 if you have <poll.h> */
345+
#undef HAVE_POLL_H
346+
347+
/* Set to 1 if you have <sys/poll.h> */
348+
#undef HAVE_SYS_POLL_H
349+
344350
/* Set to 1 if you have <netinet/tcp.h> */
345351
#undef HAVE_NETINET_TCP_H
346352

@@ -649,16 +655,19 @@
649655
/* Define if you have on_exit() */
650656
#undef HAVE_ON_EXIT
651657

658+
/* Define if you have syslog() */
659+
#undef HAVE_SYSLOG
660+
661+
/* Define if you have poll() */
662+
#undef HAVE_POLL
663+
652664
/* Define if the corresponding types are defined in standard headers */
653665
#undef HAVE_INT8
654666
#undef HAVE_UINT8
655667
#undef HAVE_INT64
656668
#undef HAVE_UINT64
657669
#undef HAVE_SIG_ATOMIC_T
658670

659-
/* Define if you have syslog() */
660-
#undef HAVE_SYSLOG
661-
662671
/* Define exactly one of these symbols to select semaphore implementation */
663672
#undef USE_NAMED_POSIX_SEMAPHORES
664673
#undef USE_UNNAMED_POSIX_SEMAPHORES

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp