bug-hurd
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]