Enlightenment CVS committal Author : chaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/bin Modified Files: evfs_metadata.c Log Message: * Stub for metadata fork handler =================================================================== RCS file: /cvs/e/e17/apps/evfs/src/bin/evfs_metadata.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- evfs_metadata.c 21 Jul 2006 15:10:09 -0000 1.17 +++ evfs_metadata.c 21 Jul 2006 17:17:03 -0000 1.18 @@ -40,13 +40,14 @@ static char* homedir; static char metadata_file[PATH_MAX]; -static char metadata_db[PATH_MAX]; static Eet_File* _evfs_metadata_eet; static sqlite3 *db; static int _evfs_metadata_db_wait = 0; static Ecore_DList* evfs_metdata_db_results = NULL; +static pid_t _metadata_fork; + /*DB Helper types*/ typedef struct { char* name; @@ -282,6 +283,8 @@ if (!evfs_object_client_is_get()) { printf(". EVFS metadata initialise..\n"); + + evfs_metadata_extract_init(); /*String edd*/ Evfs_Metadata_String_Edd = _evfs_metadata_edd_create("evfs_metadata_string", sizeof(evfs_metadata_object)); @@ -619,3 +622,25 @@ free(file_path); } + + + + + +/*----------------*/ +/*This section defines the fork/grab part of the metadata system*/ + +int evfs_metadata_extract_init() +{ + if (!evfs_object_client_is_get()) { + if (!(_metadata_fork = fork())) { + printf("Metadata fork initialised..\n"); + while ( 1 ) { + sleep(1); + } + } + } + + return 1; +} + ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs