Re: [9fans] Tread and alarm

2010-10-27 Thread Adriano Verardo
cinap_len...@gmx.de wrote: you have to implement flush in the 9p server. -- cinap Ah ... I've just (re)read the 9p(2) man page ... it seems clear now. Thank you very much, cinap :-) Subject: [9fans] Trea

Re: [9fans] Tread and alarm

2010-10-27 Thread Adriano Verardo
erik quanstrom wrote: The client is (really?) suspended until Tread, but the read() sys call cannot be interrupted by alarm(). i didn't understand your errata If the are no available data, the file server doesn't do r->ofcall.count = 0; response(r, nil); but just enqueue the Req and pro

Re: [9fans] Tread and alarm

2010-10-27 Thread cinap_lenrek
you have to implement flush in the 9p server. -- cinap --- Begin Message --- Hi, all In a user space file server (9p(2)/9pfile(2)/...) I postpone the Rread response if there are no available data, in order to implement a suspensive read(). The client is (really?) suspended until Tread, but th

Re: [9fans] Tread and alarm

2010-10-27 Thread erik quanstrom
> The client is (really?) suspended until Tread, but the read() sys call > cannot be interrupted by alarm(). i didn't understand your errata, so to clarify, read(2) is interruptable with a note (modulo the file server, but that's a different story). here's a program that demonstrates: ; 8.read

Re: [9fans] Tread and alarm

2010-10-27 Thread Adriano Verardo
Errata: ... alarm note is received after Rread, as if the ... sorry :-) Adriano Verardo wrote: Hi, all In a user space file server (9p(2)/9pfile(2)/...) I postpone the Rread response if there are no available data, in order to implement a suspensive read(). The client is (really?) suspended

[9fans] Tread and alarm

2010-10-27 Thread Adriano Verardo
Hi, all In a user space file server (9p(2)/9pfile(2)/...) I postpone the Rread response if there are no available data, in order to implement a suspensive read(). The client is (really?) suspended until Tread, but the read() sys call cannot be interrupted by alarm(). It seems to me that the