The #ifdef PYTHON_API crap was preventing the write context to be deinitialized - meaning files not being closed, semaphores not deleted...

This commit is contained in:
Carlos Fernandez 2017-12-06 18:25:22 -08:00
parent 3fb5bab343
commit d50e05315f

View File

@ -11,12 +11,14 @@ void dinit_write(struct ccx_s_write *wb)
{
#ifdef ENABLE_PYTHON
if(!signal_python_api){
#endif
if (wb->fh > 0)
close(wb->fh);
freep(&wb->filename);
if (wb->with_semaphore && wb->semaphore_filename)
unlink(wb->semaphore_filename);
freep(&wb->semaphore_filename);
#ifdef ENABLE_PYTHON
}
#endif
}