Skip to content

Commit 2e65a35

Browse files
scheduler: Fix regression in background thread (Issue #934)
The con->bg_pending value is used to indicate that the background thread has finished running and that the connection can be safely closed. This commit makes the con->bg_pending = 0 only after the connection can be safely closed.
1 parent 6aeb03b commit 2e65a35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scheduler/ipp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5517,10 +5517,10 @@ create_local_bg_thread(
55175517

55185518
ippDelete(response);
55195519

5520-
con->bg_pending = 0;
5521-
55225520
send_response(con);
55235521

5522+
con->bg_pending = 0;
5523+
55245524
return (NULL);
55255525
}
55265526

0 commit comments

Comments
 (0)