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:
+1
-1
@@ -64,7 +64,7 @@ service x-vnd.Haiku-cddb_daemon {
|
|||||||
service x-vnd.Haiku-print_server {
|
service x-vnd.Haiku-print_server {
|
||||||
launch /system/servers/print_server
|
launch /system/servers/print_server
|
||||||
no_safemode
|
no_safemode
|
||||||
legacy
|
on_demand
|
||||||
}
|
}
|
||||||
|
|
||||||
service x-vnd.Haiku-notification_server {
|
service x-vnd.Haiku-notification_server {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
SubDir HAIKU_TOP src servers print ;
|
SubDir HAIKU_TOP src servers print ;
|
||||||
|
|
||||||
UsePrivateHeaders shared print ;
|
UsePrivateHeaders app shared print ;
|
||||||
SubDirHdrs [ FDirName $(HAIKU_TOP) headers libs print libprint ] ;
|
SubDirHdrs [ FDirName $(HAIKU_TOP) headers libs print libprint ] ;
|
||||||
|
|
||||||
AddResources print_server :
|
AddResources print_server :
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ main()
|
|||||||
*/
|
*/
|
||||||
PrintServerApp::PrintServerApp(status_t* err)
|
PrintServerApp::PrintServerApp(status_t* err)
|
||||||
:
|
:
|
||||||
Inherited(PSRV_SIGNATURE_TYPE, err),
|
Inherited(PSRV_SIGNATURE_TYPE, true, err),
|
||||||
fDefaultPrinter(NULL),
|
fDefaultPrinter(NULL),
|
||||||
#ifdef HAIKU_TARGET_PLATFORM_HAIKU
|
#ifdef HAIKU_TARGET_PLATFORM_HAIKU
|
||||||
fIconSize(0),
|
fIconSize(0),
|
||||||
|
|||||||
@@ -10,10 +10,10 @@
|
|||||||
#define _PRINT_SERVER_APP_H
|
#define _PRINT_SERVER_APP_H
|
||||||
|
|
||||||
|
|
||||||
#include <Application.h>
|
|
||||||
#include <Bitmap.h>
|
#include <Bitmap.h>
|
||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
|
#include <Server.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
|
|
||||||
#include "FolderWatcher.h"
|
#include "FolderWatcher.h"
|
||||||
@@ -30,9 +30,9 @@ extern BLocker *gLock;
|
|||||||
|
|
||||||
|
|
||||||
// The print_server application.
|
// The print_server application.
|
||||||
class PrintServerApp : public BApplication, public FolderListener {
|
class PrintServerApp : public BServer, public FolderListener {
|
||||||
private:
|
private:
|
||||||
typedef BApplication Inherited;
|
typedef BServer Inherited;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PrintServerApp(status_t* error);
|
PrintServerApp(status_t* error);
|
||||||
|
|||||||
Reference in New Issue
Block a user