Creates id tag file in both storage methods

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2307 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2008-02-13 22:48:47 +00:00
parent 7825b97cfa
commit ca5886719c
1 changed files with 7 additions and 0 deletions

View File

@ -131,6 +131,13 @@ Event::Event( Monitor *p_monitor, struct timeval p_start_time, const char *p_cau
Error(( "Can't mkdir %s: %s", path, strerror(errno))); Error(( "Can't mkdir %s: %s", path, strerror(errno)));
} }
} }
char id_file[PATH_MAX];
// Create empty id tag file
snprintf( id_file, sizeof(id_file), "%s/.%d", path, id );
if ( FILE *id_fp = fopen( id_file, "w" ) )
fclose( id_fp );
else
Fatal(( "Can't fopen %s: %s", id_file, strerror(errno)));
} }
last_db_frame = 0; last_db_frame = 0;
} }