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

Commit7c97b0f

Browse files
committed
pg_regress: Promptly detect failed postmaster startup.
Detect it the way pg_ctl's wait_for_postmaster() does. When pg_regressspawned a postmaster that failed startup, we were detecting that onlywith "pg_regress: postmaster did not respond within 60 seconds".Back-patch to 9.4 (all supported versions).Reviewed by Tom Lane.Discussion:https://postgr.es/m/20181231172922.GA199150@gust.leadboat.com
1 parentaf99ad1 commit7c97b0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/test/regress/pg_regress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2390,7 +2390,7 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
23902390
* Fail immediately if postmaster has exited
23912391
*/
23922392
#ifndefWIN32
2393-
if (kill(postmaster_pid,0)!=0)
2393+
if (waitpid(postmaster_pid,NULL,WNOHANG)==postmaster_pid)
23942394
#else
23952395
if (WaitForSingleObject(postmaster_pid,0)==WAIT_OBJECT_0)
23962396
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp