git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@56
91ce42f0-d328-0410-95d8-
f526ca767f89
stat = UPDATE_DB(mdb, mdb->cmd);
db_unlock(mdb);
#ifdef HAVE_SQLITE
+ /******FIXME***** do this machine independently */
my_sqlite_query(mdb, "BEGIN"); /* begin transaction */
#endif
return stat;
{
char msg[2000];
int mlen;
+ int do_truncate = FALSE;
P(con_mutex);
rewind(con_fd);
strcpy(ua->UA_sock->msg, msg);
ua->UA_sock->msglen = mlen;
bnet_send(ua->UA_sock);
+ do_truncate = TRUE;
+ }
+ if (do_truncate) {
+ ftruncate(fileno(con_fd), 0L);
}
- ftruncate(fileno(con_fd), 0L);
console_msg_pending = FALSE;
ua->user_notified_msg_pending = FALSE;
V(con_mutex);
&& CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
smtp: smtp.o
- $(CXX) $(LDFLAGS) -static -L. -o $@ smtp.o $(LIBS) $(DLIB) -lbac -lm
+ $(CXX) $(LDFLAGS) -L. -o $@ smtp.o $(LIBS) $(DLIB) -lbac -lm
rwlock_test: rwlock.o
rm -f rwlock.o
/* */
#define VERSION "1.23"
#define VSTRING "1"
-#define DATE "7 July 2002"
-#define LSMDATE "07Jul02"
+#define DATE "12 July 2002"
+#define LSMDATE "12Jul02"
/* Debug flags */
#define DEBUG 1