crelay: update to 0.10.1

Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
Ted Hess
2016-08-31 10:15:09 -04:00
parent bc91db0d2a
commit d210444434
4 changed files with 3 additions and 29 deletions
@@ -1,11 +0,0 @@
--- a/src/Makefile
+++ b/src/Makefile
@@ -64,7 +64,7 @@ all: $(BIN)
$(BIN): $(OBJ)
@echo "[Link $(BIN)] with libs $(LIBS)"
- @$(CC) -o $(BIN) $(OBJ) $(LIBS)
+ @$(CC) -o $(BIN) $(OBJ) $(LDFLAGS) $(LIBS)
.c.o:
@echo "[Compile $<]"
@@ -1,15 +0,0 @@
--- a/src/crelay.c
+++ b/src/crelay.c
@@ -678,10 +678,12 @@ int main(int argc, char *argv[])
listen(sock, 5);
syslog(LOG_DAEMON | LOG_NOTICE, "HTTP server listening on %s:%d\n", inet_ntoa(iface), port);
+#if 0
if (daemon(0, 0) == -1) {
syslog(LOG_DAEMON | LOG_ERR, "Failed to daemonize: %s", strerror(errno));
exit(EXIT_FAILURE);
}
+#endif
while (1)
{