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

Commit7ebae4c

Browse files
committed
Add SLEEP_ON_ABORT
1 parenta483424 commit7ebae4c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/backend/utils/error/assert.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.8 1998/06/18 16:32:51 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.9 1998/06/18 16:35:38 momjian Exp $
1111
*
1212
* NOTE
1313
* This should eventually work with elog(), dlog(), etc.
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
1717
#include<stdio.h>
18+
#include<unistd.h>
1819

1920
#include"postgres.h"/* where the declaration goes */
2021
#include"utils/module.h"
@@ -54,9 +55,11 @@ ExceptionalCondition(char *conditionName,
5455
}
5556

5657
#ifdefABORT_ON_ASSERT
57-
sleep(99999);
5858
abort();
5959
#endif
60+
#ifdefSLEEP_ON_ASSERT
61+
sleep(1000000);
62+
#endif
6063

6164
/*
6265
* XXX Depending on the Exception and tracing conditions, you will XXX

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp