~stacyharper/bonsai

2941af7b02e965f9ef2cf7d63fa083d91f3348cf — Stacy Harper 13 days ago 7392eea main v0.3.0
Fatal must log wathever
1 files changed, 3 insertions(+), 3 deletions(-)

M cmd/bonsaid/socket.ha
M cmd/bonsaid/socket.ha => cmd/bonsaid/socket.ha +3 -3
@@ 53,7 53,7 @@ fn bind(
	case let l: net::socket =>
		yield l;
	case let err: net::error =>
		log::fatal(net::strerror(err));
		fmt::fatal(net::strerror(err));
	};
	os::chmod(sockpath, 0o700)!;



@@ 153,7 153,7 @@ fn dispatch(serv: *server) bool = {
	case errors::interrupted =>
		yield;
	case let err: errors::error =>
		log::fatal("poll:", errors::strerror(err));
		fmt::fatal("poll:", errors::strerror(err));
	};

	return true;


@@ 165,7 165,7 @@ fn accept(serv: *server) void = {
	case let sock: net::socket =>
		yield sock;
	case let err: net::error =>
		log::fatal(net::strerror(err));
		fmt::fatal(net::strerror(err));
	};
	if (len(serv.clients) >= MAX_CLIENTS) {
		log::println("max clients exceeded; dropping client");