Re: Read from file fails

From: Denis Vlasenko
Date: Wed May 05 2004 - 05:56:35 EST


On Wednesday 05 May 2004 13:19, Libor Vanek wrote:
> > Libor Vanek wrote:
> > >OK - how can I "notify" userspace process? Signals are "weak" - I need
> > > to send some data (filename etc.) to process. One solution is "on this
> > > signal call this syscall and result of this syscall will be data you
> > > need" - but I'd prefer to handle this in one "action".
> >
> > My first thoughts are to make it a blocking call.
>
> You mean like:
> - send signal to user-space process
> - wait until user-space process pick ups data (filename etc.), creates copy
> of file (or whatever) and calls another system call that he's finished -
> let kernel to continue syscall I blocked
> ?

I think he meant that userspace daemon should do a blocking syscall
(a read for example). When that returns, daemon knows he has
something to do.
--
vda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/