We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0cff0 commit e66ac98Copy full SHA for e66ac98
pg_crash.c
@@ -37,7 +37,7 @@ _PG_init(void)
37
DefineCustomStringVariable(
38
"crash.signals",
39
"A list of signals to choose from.",
40
- "Random signal is chosen out of the ones contained in the set.",
+ "Random signal is chosen out of the ones contained in the set (space-separated).",
41
&crash_signals,
42
"15",
43
PGC_POSTMASTER,
@@ -152,11 +152,11 @@ crash_worker_main(Datum main_arg)
152
break;
153
154
/* Select signal. */
155
- n = random() % list_length(signals);
+ n = rand() % list_length(signals);
156
signal = list_nth_int(signals, n);
157
158
/* Select backend. */
159
- n = random() % nprocs;
+ n = rand() % nprocs;
160
j = 0;
161
for (i = 0;; i++)
162
{
0 commit comments