Rewrote mbtask as a single process

This commit is contained in:
Michiel Broek
2006-02-13 19:26:30 +00:00
parent 88453c9c55
commit cd8c6a00db
21 changed files with 667 additions and 1098 deletions

View File

@@ -169,6 +169,7 @@ term.o: ../config.h mbselib.h users.h
endian.o: ../config.h mbselib.h
timers.o: ../config.h mbselib.h
pidinfo.o: ../config.h mbselib.h
tmpwork.o: ../config.h mbselib.h
dbcfg.o: ../config.h mbselib.h mbse.h users.h mbsedb.h
dbdupe.o: ../config.h mbselib.h mbse.h users.h mbsedb.h
dbftn.o: ../config.h mbselib.h users.h mbsedb.h

View File

@@ -4,7 +4,7 @@
* Purpose ...............: MBSE Deamon Client
*
*****************************************************************************
* Copyright (C) 1993-2005
* Copyright (C) 1993-2006
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@@ -158,6 +158,9 @@ int socket_send(char *buf)
if (sendto(sock, buf, strlen(buf), 0, (struct sockaddr *)&servaddr, sizeof(servaddr)) != strlen(buf)) {
printf("Socket send failed error %d\n", errno);
if (errno == 2) {
abort();
}
return -1;
}
return 0;