Commits
- Commit:
cbe39f11829176889cb350bc903e0f339cff366e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
don't treat unhandled signals as a fatal error in gotwebd
The default action of some signals may be to terminate the process,
but this does not apply to all signals.
- Commit:
06b40487cb45b7d4def06fb83471662497e35879
- From:
- James Cook <falsifian@falsifian.org>
- Date:
In parse_ref_file, release lock when fstat fails
It's released in case of other errors. This seems to be an oversight.
ok stsp@
- Commit:
e896de0dbd9971fbc7969f0df170b4a495b4cd28
- From:
- James Cook <falsifian@falsifian.org>
- Date:
Explicitly test S_ISREG in parse_ref_file
parse_ref_file previously detected directories in the refs directory
by trying to read and checking for EISDIR. This doesn't work on
NetBSD, and the S_ISREG should exclude other kinds of non-regular
files.
ok stsp@
- Commit:
25005dc3b0e6dc5d627ed020f3ef1ef039b94a4f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use proper namespacing for gotwebd imsg type symbols
- Commit:
1caf8972f3e1c8ed34e6a9a3ce7a24ebb3d6cc6a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
document the actual repository name restrictions enforced in gotsys.conf(5)
The previous text came from gotd.conf(5) and suggested that repository names
could contain path separators. However, the current gotsys implementation
forbids them, and parts of gotsysd assume that a repository name corresponds
to a directory entry. So we cannot allow path separators, at least for now.
- Commit:
06eb6b94df1c312f5ef93c705898a13ce6750003
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove a TODO item that is done
- Commit:
9c59e004ed81c97dd7a7e1f2160159772fab42e7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow setting the repository HEAD reference via gotsys.conf
- Commit:
0b0f79d722c25dc127717eb805d8c6eaf2ca592d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not forget to actually free the repo itself in gotsys_repo_free()
- Commit:
388e7b970816daf27b983c96507e5a68ddf63ed7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
some typos
courtesy of codespell; ok stsp@
- Commit:
a80b99e21fc857df67ec90b2b3d86ea3b87de4b1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove a duplicate imsgbuf_clear() call
- Commit:
c82b772cec8b87e850bf1f7f6ce616ac189579af
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove another gotsysd todo item that is done
- Commit:
934d393715132f45c75259184bd798a8ebb0a082
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make gotsys-apply-conf use gotd reload instead of stop + restarting
- Commit:
476374d8eb748fb68a2604fd7155a4cbeb80ccd6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
set close-on-exec flag on more files used during gotd reload
- Commit:
ef5e843f236f129cd9d8cd452e36ba5fbdb961a2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
repair build of gotctl and gotsh following the gotd_imsg file split
- Commit:
70259cdf1bf2860ee303c2f581cfaa08dba2edef
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move duplicated gotd_imsg functions into a single source file
- Commit:
9619bad01228458bc938f90c107e32158e635bae
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
provide imsg-based variants of gotsys check/apply for gotd to use
This allows for better inter-process communication, making error reporting
easier. It also avoids closing standard output and standard error channels
in a freshly forked child process, which seems to be a bad idea.
- Commit:
0fbf6ccc8a35712208f91ab1397cd0b5eb927e6a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
set close-on-exec flag on gotd socket to avoid it leaking during reloads
- Commit:
5f4e1ba7c031235f36541d39ad34d09bc24fc85c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid double-close of gotd_reload_conf_fd
- Commit:
a64024d22dee547edfe438e51c7660d868cc0306
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in gotsys-apply-conf, avoid using a -1 socket fd if gotd is not running
- Commit:
c58432778b0d60779066b29fdcfd2be65e485820
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
Xr gotctl and document SIGHUP issue
- Commit:
b8002eb1bd82761b269bfcea9e5a3d14e880a25e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
implement reload support in gotd, triggered via gotctl reload
Reload must be triggered via 'gotctl reload' rather than SIGHUP because
once gotd has dropped root privileges the gotd-secrets.conf file becomes
permanently inaccessible. When SIGHUP is received gotd now logs a message
which points the user at 'gotctl reload'.
- Commit:
db8be6f20a215d27d0037ce8bbc87c76409189bd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
set close-on-exec flag on client connections in gotd parent process
Ensures that existing clients will be properly disconnected once the
gotd reload feature is introduced.
- Commit:
8d07ef48ecf42b004c38bb48b0eec3eb5cd06a30
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove closefrom() in gotd when gotsys is run
closefrom doesn't have the desired effect as it may affect unrelated open
files in the parent process. The right way to deal with this seems to be
setting the close-on-exec flag on file descriptors instead.
- Commit:
52b119c266230d82148c26d259a94c5c424c58b3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
drop pointless imsgbuf_allow_fdpass() calls from gotctl
- Commit:
afc8f605e6be7e47151b1854508bbae037286845
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
merge two subsequent if (proc_id == GOTD_PROC_GOTD) blocks.