Re: [9fans] syscall silently kill processes

2022-06-19 Thread andrey100100100
В Пн, 20/06/2022 в 04:41 +, adr пишет: > On Mon, 20 Jun 2022, andrey100100...@gmail.com wrote: > > The note 'alarm' is needed to interrupt the system call on timeout > > since system calls to lan 9 can be of a network nature, a notes is > > indispensable. > > A great example of this is the

Re: [9fans] syscall silently kill processes

2022-06-19 Thread adr
On Mon, 20 Jun 2022, andrey100100...@gmail.com wrote: The note 'alarm' is needed to interrupt the system call on timeout since system calls to lan 9 can be of a network nature, a notes is indispensable. A great example of this is the read() system call on a udp-connection. How else can this

Re: [9fans] syscall silently kill processes

2022-06-19 Thread andrey100100100
В Пн, 20/06/2022 в 00:22 +0300, andrey100100...@gmail.com пишет: > В Вс, 19/06/2022 в 16:41 +, adr пишет: > > On Sun, 19 Jun 2022, andrey100100...@gmail.com wrote: > > > Yes, you were absolutely right, the thread library needs some > > > work. > > > > > > It is impossible to use multiple

Re: [9fans] syscall silently kill processes

2022-06-19 Thread andrey100100100
В Вс, 19/06/2022 в 16:41 +, adr пишет: > On Sun, 19 Jun 2022, andrey100100...@gmail.com wrote: > > Yes, you were absolutely right, the thread library needs some work. > > > > It is impossible to use multiple processes with notes, due to the > > exhaustion of the NFN limit. > > Andrej, what

Re: [9fans] syscall silently kill processes

2022-06-19 Thread adr
On Sun, 19 Jun 2022, andrey100100...@gmail.com wrote: Yes, you were absolutely right, the thread library needs some work. It is impossible to use multiple processes with notes, due to the exhaustion of the NFN limit. Andrej, what are you going to do with alarm in the real thing? You could

Re: [9fans] syscall silently kill processes

2022-06-19 Thread andrey100100100
В Вс, 19/06/2022 в 10:32 +, adr пишет: > On Sun, 19 Jun 2022, andrey100100...@gmail.com wrote: > > No way. All processes must run simultaneously. > > NFN limit cannot be bypassed. > > Yeah, that's why I said it was silly: > > > > The solution is obvious, cancel the process' handlers before it

Re: [9fans] syscall silently kill processes

2022-06-19 Thread andrey100100100
В Вс, 19/06/2022 в 14:40 +0300, andrey100100...@gmail.com пишет: > В Вс, 19/06/2022 в 10:32 +, adr пишет: > > On Sun, 19 Jun 2022, andrey100100...@gmail.com wrote: > > > No way. All processes must run simultaneously. > > > NFN limit cannot be bypassed. > > > > Yeah, that's why I said it was

Re: [9fans] syscall silently kill processes

2022-06-19 Thread andrey100100100
В Вс, 19/06/2022 в 10:32 +, adr пишет: > On Sun, 19 Jun 2022, andrey100100...@gmail.com wrote: > > No way. All processes must run simultaneously. > > NFN limit cannot be bypassed. > > Yeah, that's why I said it was silly: > > > > The solution is obvious, cancel the process' handlers before it

Re: [9fans] syscall silently kill processes

2022-06-19 Thread adr
On Sun, 19 Jun 2022, andrey100100...@gmail.com wrote: No way. All processes must run simultaneously. NFN limit cannot be bypassed. Yeah, that's why I said it was silly: The solution is obvious, cancel the process' handlers before it exits so we don't run out of space. This was really

Re: [9fans] syscall silently kill processes

2022-06-19 Thread andrey100100100
В Вс, 19/06/2022 в 05:01 +, adr пишет: > On Sun, 19 Jun 2022, adr wrote: > > The solution is obvious, cancel the process' handlers before it > > exits so we don't run out of space. > > This was really silly... > > > Now, is there any reason to not do that in threadexits() when it > >

Re: [9fans] syscall silently kill processes

2022-06-19 Thread Jacob Moody
On 6/18/22 23:54, adr wrote: > On Sat, 18 Jun 2022, Jacob Moody wrote: >> I've attempted to reproduce it, trying to remove the libthread/notify >> factors. I've come up with this: >> >> #include >> #include >> >> static void >> proc_udp(void*) >> { >>char resp[512]; >>char req[]