Added signature for changeset fea4f39c2d39

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Added tag v0.22-rc3 for changeset 34b5c0e2a9d0

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
socksvc: stop listening after the worker threads have finished

It should be fine either way since only the main socksvc thread should be
touching the listening sockets, but at a glance it looks more correct to
stop all the threads and then close the sockets.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
socksvc: return the state we allocated

When socksvc was converted to be async, we accidentally returned 0 on
success.  This was interpreted as NULL state.  The actual socksvc threads
continued operating fine, but there was no way to shut them down since the
consumer had no way to refer to the state.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
socksvc: use a 1 second timeout for select(2)

Without it, the thread will block until a connection is received.  This
becomes a problem if we want to shut down since we will not check the
shut down condititon (state->server_shutdown) until after we return from
select.  The easiest way around it is to have select time out.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
cmake: install vclock.h

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
vclock: add tests

The tests don't yet cover vclock_to_str & vclock_from_str.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
vclock: rely on __get_ent helper to check for zero node id

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
vclock: avoid an unnecessary memset when duplicating vclocks

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
vclock: improve the comments describing the public functions

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
vclock: slightly reorder prototypes in header file

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
vclock: add API functions to mapfile

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
vclock: rename from 'nvclock' to 'vclock'

The 'n' in 'nvclock' stood for nomad.  Since this code aims to be generic,
let's drop the 'n' and call it vclock.

Additionally, this change renames some of the types to be less cryptic.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
vclock: make the code build

This is a matter of trivial include tweaks and dropping the convenience
functions that relied on nomad_local_node_id.  Consumers of vclock can
define their own.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
vclock: import vector clock code from nomad

This commit simply adds the two files.  The next commit will actually tweak
them and start building them.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
build: collapse debian build & test steps for cleaner output

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
build: replace gcc10 with gcc11, add gcc14/llvm15/llvm16/llvm19 on FreeBSD

Also, collapse the build and test steps for more compact output.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
socksvc & scgisvc: make them async

Instead of socksvc being a blocking function call, make it return a "handle"
that can be used later to stop the thread and close sockets.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
socksvc: rename callback struct

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
sock: add connect_addr that takes the destination address directly

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Next