print_server: Converted to launch_daemon, run on demand only.

* Seems to work fine, although it should probably also be triggered when
  there are still jobs in the queue -- someone more knowledgeable might
  want to chime in here, please :-)
* If this turns out to be problematic, we can just drop the "on_demand"
  job config again.
This commit is contained in:
Axel Dörfler 2015-10-13 16:37:16 +02:00
parent e048384d77
commit 37e5a03660
4 changed files with 6 additions and 6 deletions

View File

@ -64,7 +64,7 @@ service x-vnd.Haiku-cddb_daemon {
service x-vnd.Haiku-print_server {
launch /system/servers/print_server
no_safemode
legacy
on_demand
}
service x-vnd.Haiku-notification_server {

View File

@ -1,6 +1,6 @@
SubDir HAIKU_TOP src servers print ;
UsePrivateHeaders shared print ;
UsePrivateHeaders app shared print ;
SubDirHdrs [ FDirName $(HAIKU_TOP) headers libs print libprint ] ;
AddResources print_server :

View File

@ -79,7 +79,7 @@ main()
*/
PrintServerApp::PrintServerApp(status_t* err)
:
Inherited(PSRV_SIGNATURE_TYPE, err),
Inherited(PSRV_SIGNATURE_TYPE, true, err),
fDefaultPrinter(NULL),
#ifdef HAIKU_TARGET_PLATFORM_HAIKU
fIconSize(0),

View File

@ -10,10 +10,10 @@
#define _PRINT_SERVER_APP_H
#include <Application.h>
#include <Bitmap.h>
#include <Catalog.h>
#include <OS.h>
#include <Server.h>
#include <String.h>
#include "FolderWatcher.h"
@ -30,9 +30,9 @@ extern BLocker *gLock;
// The print_server application.
class PrintServerApp : public BApplication, public FolderListener {
class PrintServerApp : public BServer, public FolderListener {
private:
typedef BApplication Inherited;
typedef BServer Inherited;
public:
PrintServerApp(status_t* error);