From: Mart Lubbers Date: Wed, 4 Jan 2017 15:58:41 +0000 (+0100) Subject: update X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=790a710d277a608f47bf92f7edb6ef18935a7954;p=mTask.git update --- diff --git a/int/main.c b/int/main.c index e7a8f22..43911bc 100644 --- a/int/main.c +++ b/int/main.c @@ -79,6 +79,8 @@ void read_message(int fd_in, int fd_out) c = task_register(fd_in); write(fd_out, &c, 1); break; + case '\n': + break; case '\0': debug("iTasks server shut down\n"); exit(EXIT_SUCCESS); @@ -99,9 +101,9 @@ void open_filedescriptors() if((sock_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) pdie("socket"); if(bind(sock_fd, (struct sockaddr*)&sa, sizeof(sa)) == -1) - pdie("bind\n"); + pdie("bind"); if(listen(sock_fd, 10) == -1) - pdie("bind\n"); + pdie("listen"); printf("Listening on %d\n", port); fflush(stdout); @@ -150,6 +152,7 @@ int main(int argc, char *argv[]) } open_filedescriptors(); + write(fd, "\n", 1); long cyclestart; struct task *curtask; diff --git a/int/sds.c b/int/sds.c index 679ce42..ff37af3 100644 --- a/int/sds.c +++ b/int/sds.c @@ -60,10 +60,10 @@ bool sds_update(int fd) void sds_publish(int id, int fd) { uint8_t cs; + char msg[6]; for(cs = 0; cs ByteCode a b pub x = fmp makePub x