|
Lines 254-259
my $dbh;
Link Here
|
| 254 |
# option (wait-for-lock) is provided to let the program wait for the lock. |
254 |
# option (wait-for-lock) is provided to let the program wait for the lock. |
| 255 |
# See https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11078 for details. |
255 |
# See https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11078 for details. |
| 256 |
if ($daemon_mode) { |
256 |
if ($daemon_mode) { |
|
|
257 |
|
| 258 |
$SIG{TERM} = sub { |
| 259 |
$dbh->disconnect if $dbh; |
| 260 |
exit 0; |
| 261 |
}; |
| 262 |
|
| 263 |
$SIG{INT} = sub { |
| 264 |
$dbh->disconnect if $dbh; |
| 265 |
exit 0; |
| 266 |
}; |
| 267 |
|
| 257 |
while (1) { |
268 |
while (1) { |
| 258 |
|
269 |
|
| 259 |
# For incremental updates, skip the update if the updates are locked |
270 |
# For incremental updates, skip the update if the updates are locked |