daemonize bug fixed

This commit is contained in:
reenoo
2001-12-24 12:48:55 +00:00
parent 9d1f424028
commit c25e8a623a
2 changed files with 6 additions and 5 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
/*
/*
* Driver loader
*
* This code does all driver handling, loading, initializing, unloading.
@@ -82,15 +82,15 @@ load_driver ( char * name, char * filename, char * args )
// Add driver to list
LL_Push( loaded_drivers, driver );
// Check the driver type
if( driver->daemonize ) {
return 2;
// Check the driver type
if( !driver->daemonize ) {
return 2;
}
return 1; // We can't see if it's an input driver only...
}
int
unload_all_drivers ()
{
+1
View File
@@ -270,6 +270,7 @@ lcdm001_init (struct lcd_logical_driver *driver, char *args)
/*
* Configure the display functions
*/
driver->daemonize = 1; // daemonize.
driver->clear = lcdm001_clear;
driver->string = lcdm001_string;