diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-04-15 19:51:59 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-04-15 19:51:59 +0200 |
commit | d3d6e1d447891889459a691b5cd50fa73fca92d1 (patch) | |
tree | 39b2d49543748ecb30a8f79d0f24864d52ea4c08 /rumpdisk | |
parent | 7bcceb243cdb6cb9175a51344b9028370c202845 (diff) | |
download | hurd-d3d6e1d447891889459a691b5cd50fa73fca92d1.tar.gz hurd-d3d6e1d447891889459a691b5cd50fa73fca92d1.tar.bz2 hurd-d3d6e1d447891889459a691b5cd50fa73fca92d1.zip |
libmachdev: Restore making machdev_trivfs_server blocking
netdde actually needs to control which thread runs the trivfs server,
for managing per-thread state etc.
Only pci-arbiter needs to run machdev_trivfs_server non-blockingly, it
can create a thread by itself.
* libmachdev/trivfs_server.c (machdev_trivfs_loop): Move back muxer loop
to...
(machdev_trivfs_server): ... here.
* pci-arbiter/main.c (main): Run machdev_trivfs_server in its own
thread.
* rumpdisk/main.c (main): Do not call pthread_exit().
Diffstat (limited to 'rumpdisk')
-rw-r--r-- | rumpdisk/main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/rumpdisk/main.c b/rumpdisk/main.c index 7f503b51..c5f44fb7 100644 --- a/rumpdisk/main.c +++ b/rumpdisk/main.c @@ -119,7 +119,5 @@ main (int argc, char **argv) return err; pthread_detach (t); machdev_trivfs_server (bootstrap); - /* Let the other threads do their job */ - pthread_exit (NULL); return 0; } |