X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Ffrontend%2Fsock.c;h=1f3ec5fd74b70ee903a68ce8678bd2fb69c4a87b;hb=7d146c24e78c57af633c57fc75883602083fb83b;hp=cf187fcb42adc4bffc229f6c20ed208105c9bde5;hpb=f57b23c4059c67c4c2c7ab1b06c02c000bcf7250;p=sysdb.git diff --git a/src/frontend/sock.c b/src/frontend/sock.c index cf187fc..1f3ec5f 100644 --- a/src/frontend/sock.c +++ b/src/frontend/sock.c @@ -570,7 +570,11 @@ connection_handler(void *data) "connection %s to list of open connections", SDB_OBJ(conn)->name); } - write(sock->trigger[TRIGGER_WRITE], "", 1); + if (write(sock->trigger[TRIGGER_WRITE], "", 1) <= 0) { + /* This shouldn't happen and it's not critical; in the worst cases + * it slows us down. */ + sdb_log(SDB_LOG_WARNING, "frontend: Failed to trigger main loop"); + } /* pass ownership back to list; or destroy in case of an error */ sdb_object_deref(SDB_OBJ(conn));