Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit de744e9

Browse files
Fix check for trapping exit() calls in libpq
Commit e9bc044 added an errorhint on the exit() check for libpq, but accidentally changed the nm commandline to use -a instead of -A. These options are similar enough to hide it in testing, but -a can also show debugger symbols which isn't what we want. Fix by reverting the check back to using -A again. Reported-by: Anton Voloshin <a.voloshin@postgrespro.ru> Discussion: https://postgr.es/m/bd2c8409-d6b3-5de9-ba0f-40c1381f630f@postgrespro.ru
1 parent c1aa3b3 commit de744e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/libpq/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ backend_src = $(top_srcdir)/src/backend
115115
libpq-refs-stamp: $(shlib)
116116
ifneq ($(enable_coverage), yes)
117117
ifeq (,$(filter aix solaris,$(PORTNAME)))
118-
@if nm -a -u $< 2>/dev/null | grep -v __cxa_atexit | grep exit; then \
118+
@if nm -A -u $< 2>/dev/null | grep -v __cxa_atexit | grep exit; then \
119119
echo 'libpq must not be calling any function which invokes exit'; exit 1; \
120120
fi
121121
endif

0 commit comments

Comments
 (0)