[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: R: Asking help for a little project
From: |
Samuel Thibault |
Subject: |
Re: R: Asking help for a little project |
Date: |
Thu, 27 Jan 2022 19:22:33 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Alessandro Sangiuliano, le jeu. 27 janv. 2022 08:49:33 +0000, a ecrit:
> while(1)
> receive_message(ret);
>
> Obviously this is a blocking loop, it mens that actually when this code is
> reached the boot process is stopped, blocking here. This is happening to the
> Hurd too, when I use my custom nameserver.
>
> I have to do task_resume() other tasks before the loop,
Or not? I mean, if you use
module /hurd/ext2fs.static ext2fs [...]
--exec-server-task='${exec-task}' '$(task-create)' '$(task-resume)'
module /lib/ld.so.1 exec /hurd/exec '$(exec-task=task-create)'
module /hurd/yourmodule.static yourmodule '$(task-resume)'
Both ext2fs.static and yourmodule.static will start in parallel.
Alternatively you could add an option to ext2fs.static to make it
task_resume() a series of tasks when the bootstrap process if finished
(similarly to how it gets a port on the exec task with ${exec-task})
Samuel