Warmcat homepage andy@warmcat.com
libwebsockets
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1748367183, "reponame":"gitohashi", "desc":"Git web frontend with clientside rendering", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/gitohashi", "f":3, "items": [ {"schema":"libjg2-1", "cid":"2eaa918a045c54e26771915bceda9038", "commit": {"type":"commit", "time": 1743998766, "time_ofs": 60, "oid_tree": { "oid": "06cbbc32ddfd8450c26aada625db700a56ac055a", "alias": []}, "oid":{ "oid": "27c50bb3d0853daacf2169223ffec2c490724585", "alias": []}, "msg": "warmcat fixes 2", "sig_commit": { "git_time": { "time": 1743998766, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1743998763, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "warmcat fixes 2\n" , "diff": "diff --git a/lib/conf/gitolite/gitolite3.c b/lib/conf/gitolite/gitolite3.c\nindex 3e41d2d..ba4903e 100644\n--- a/lib/conf/gitolite/gitolite3.c\n+++ b/lib/conf/gitolite/gitolite3.c\n@@ -297,17 +297,22 @@ jg2_gitolite3_interface(struct jg2_global *jg2_global, const char *repodir)\n \t\t}\n \n \t\tif (pid) {\n+\t\t\tint wpr;\n \n \t\t\t/* parent */\n \n \t\t\tif (fdsi !\u003d -1)\n \t\t\t\tclose(fdsi);\n \t\t\tclose(fd); /* parent doesn't want it */\n-\t\t\twaitpid(pid, \u0026res, 0);\n+\t\t\tres \u003d 0;\n+\t\t\twpr \u003d waitpid(pid, \u0026res, 0);\n \n \t\t\t/* child is done, so his copy of fd is also closed */\n \n-\t\t\tlwsl_notice(\u0022%s: query result %d\u005cn\u0022, __func__, res);\n+\t//\t\tif (WIFEXITED(res))\n+\t//\t\t\tres \u003d WEXITSTATUS(res);\n+\n+\t\t\tlwsl_notice(\u0022%s: query result %d, %d\u005cn\u0022, __func__, wpr, res);\n \n \t\t\tn \u003d write(jg2_global-\u003egl3_pipe_result[1], \u0026res,\n \t\t\t\t sizeof(res));\n@@ -460,7 +465,7 @@ jg2_gitolite3_blocking_query(struct jg2_global *jg2_global, const char *query,\n \t} else\n \t\tlwsl_notice(\u0022%s: can't open %s\u005cn\u0022, __func__, temp);\n \n-\tlwsl_notice(\u0022%s: query result %d\u005cn\u0022, __func__, res);\n+\tlwsl_notice(\u0022%s: query result B %d\u005cn\u0022, __func__, res);\n \n bail:\n \tpthread_mutex_unlock(\u0026jg2_global-\u003elock_query); /* global query unlock */\ndiff --git a/system/gitohashi.service b/system/gitohashi.service\nindex 3290e4b..3aa2d79 100644\n--- a/system/gitohashi.service\n+++ b/system/gitohashi.service\n@@ -8,6 +8,7 @@ ExecReload\u003d/usr/bin/kill -HUP $MAINPID\n ExecStop\u003d/usr/bin/killall gitohashi\n Restart\u003don-failure\n RestartSec\u003d5s\n+LimitAS\u003d1500M\n \n [Install]\n WantedBy\u003dmulti-user.target\n","s":{"c":1747990604,"u": 733}} ],"g": 971,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "7d0a"}