]> git.ipfire.org Git - thirdparty/cups.git/commit
scheduler: Fix cupsd activated on-demand via socket 988/head
authorZdenek Dohnal <zdohnal@redhat.com>
Tue, 18 Jun 2024 08:38:48 +0000 (10:38 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Tue, 18 Jun 2024 08:38:48 +0000 (10:38 +0200)
commit145b946a86062aafab76c656ee9c1112bfd4f804
treeb5068afc896b9967c8c4337fdfb846a722a22d93
parentd0b16a27d18715911cbf174f445b24ad4749e61b
scheduler: Fix cupsd activated on-demand via socket

If only the expected cups.sock is set as listener in cupsd.conf, the
array Listeners was NULL. To prevent copying the code, do the array
allocation earlier and have only one check for Listeners, in
service_checkin() which is run every time cupsd starts.

Fixes #985
CHANGES.md
scheduler/conf.c
scheduler/main.c