[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/4] Bootstrappable pci-arbiter
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 3/4] Bootstrappable pci-arbiter |
Date: |
Tue, 2 Mar 2021 22:46:16 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Damien Zammit, le mar. 02 mars 2021 22:41:36 +1100, a ecrit:
> @@ -108,6 +226,11 @@ main (int argc, char **argv)
> if (err)
> error (1, err, "Setting permissions");
>
> + err = pthread_create (&nt, NULL, netfs_server_func, NULL);
> + if (err)
> + error (1, err, "Creating netfs loop thread");
> + pthread_detach (nt);
> +
This should actually completely replace
> @@ -116,5 +239,8 @@ main (int argc, char **argv)
>
> netfs_server_loop (); /* Never returns. */
That, shouldn't it?
> + /* Let the other threads do their job */
> + pthread_exit(NULL);
And indeed use that to let threads flow.
Samuel
- [PATCH x4] hurd: pci-arbiter and rumpdisk static server support, Damien Zammit, 2021/03/02
- [PATCH 1/4] libnetfs: Behave more like diskfs_startup_diskfs, Damien Zammit, 2021/03/02
- [PATCH 2/4] libmachdev: Spawn a thread for server loop so main pathway can continue, Damien Zammit, 2021/03/02
- [PATCH 3/4] Bootstrappable pci-arbiter, Damien Zammit, 2021/03/02
- [PATCH 4/4] rumpdisk: Don't pretend to be the arbiter anymore, Damien Zammit, 2021/03/02
- Re: [PATCH x4] hurd: pci-arbiter and rumpdisk static server support, Samuel Thibault, 2021/03/02