#include "gfx.h"
#include "txtform.h"
-#define M_VERSION 1.25
+#define M_VERSION 1.26
#define NCF_FILE "/var/tuxbox/config/neutrino.conf"
#define HDF_FILE "/tmp/.msgbox_hidden"
char *trstr=NULL;
const char INST_FILE[]="/tmp/rc.locked";
int instance=0;
+int rclocked=0;
int stride;
int get_instance(void)
if(pval)
{
+ if (!rclocked) {
+ rclocked=1;
+ system("pzapit -lockrc > /dev/null");
+ }
if((fh=fopen(INST_FILE,"w"))!=NULL)
{
fputc(pval,fh);
else
{
remove(INST_FILE);
+ system("pzapit -unlockrc > /dev/null");
}
}