Hi!

For the record, Ashish is thinking of ways to implement:

http://www.helenos.org/ticket/215 (http://www.helenos.org/ticket/215)

note that there is also a related:

http://www.helenos.org/ticket/216 (Need 'end of input' functionality)

On IRC, I provided general recommendation to approach this using
preferably existing high-level constructs involving IPC rather than
reinventing new low-level ones that involve writing device drivers and
interrupt handlers (which I strongly discouraged). For the IPC approach
I suggested minor enhancement to the IPC mechanism might be justified (a
new kind of system IPC message, special flags to make IPC connections
behave in a certain way, such as "keep-open-or-be-killed") etc.

The idea was to detect the Ctrl+C press in a suitable place (should this
be console?, the input server?, somewhere else?) and react somehow. The
reaction can be twofold, depending on whether we allow clients to ignore
Ctrl+C or not. If we don't allow that, there must be a way to kill the
recipient of Ctrl+C unconditionally from the outside, which necessitates
a new mechanism (see above). The other possibility seems easier as it
could be probably realized using existing mechanisms and the client can
terminate itself.

I also encouraged Ashish to make his mind about how he wants to tackle
the unknowns mentioned above. For GSoC, it is essential to come up with
a clear project idea that will have these things already thought through.

Jakub


On 03/27/2017 03:18 AM, Ashish Gahlot wrote:
> 
> Hello Supragya Ra,
> What I am trying to implement is Ctrl+C implementation using IPC as
> HelenOS does not use POSIX signals to send signals like SIGINT for
> Ctrl+C. The input.c file is located at uspace/lib/c/generic/io as it is
> the part of keyboard driver which recognizes its input using the
> keycodes located at uspace/lib/c/generic/io/keycode.h.
> 
> Thanks,
> 
> 
> 
> On Mon, Mar 27, 2017 at 1:37 AM, Supragya Raj <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hi Ashish, can u provide with more inputs on the topic? Is input.c
>     bdsh's input.c at uspace/app/bdsh? or something else. What are you
>     trying to implement?
>     I would really like to share some suggestion if I know of something.
> 
>     Regards,
>     Supragya Raj
>     Fellow GSoC aspirant
> 
>     On Sun, Mar 26, 2017 at 3:20 PM, Ashish Gahlot
>     <[email protected] <mailto:[email protected]>> wrote:
> 
>         Hello HelenOS community,
>          
>         After talking to Jakub Jermar about adding the Ctrl+C
>         implementation in HelenOS, we got to the conclusion that adding
>         a new IPC_M_* method would be the right thing to do. As console
>         output is involved in this implementation which is mainly
>         handled by the file input.c, would it be good to use a new
>         keycode for Ctrl+C or use the existing method in input.c using
>         static void input_ev_key(input_t *input, ipc_callid_t callid,
>         ipc_call_t *call).
> 
>         Please let me know if you have any comments or suggestions about
>         my approach to the implementation. Also please let me know if
>         there are other enhancements that are easily implementable as
>         part of the project or otherwise.
> 
>         Thanks,
> 
>         -- 
>         Ashish Kumar Gahlot
>         III year, UG
>         Govt. Engg. College, Ajmer, India
> 
> 
> 
> 
>         _______________________________________________
>         HelenOS-devel mailing list
>         [email protected] <mailto:[email protected]>
>         http://lists.modry.cz/listinfo/helenos-devel
>         
> <https://mailtrack.io/trace/link/b0adef545a415d0236317779c23b801de18e3422?url=http%3A%2F%2Flists.modry.cz%2Flistinfo%2Fhelenos-devel&userId=1092297&signature=a5a3b0f7c791bb82>
> 
> 
> 
> 
>     -- 
>     E-mail sent by:
> 
>     ===================
>     SUPRAGYA RAJ
>     ===================
> 
>     _______________________________________________
>     HelenOS-devel mailing list
>     [email protected] <mailto:[email protected]>
>     http://lists.modry.cz/listinfo/helenos-devel
>     
> <https://mailtrack.io/trace/link/8f2508966a0ae0788835d7242ebef35f7486e240?url=http%3A%2F%2Flists.modry.cz%2Flistinfo%2Fhelenos-devel&userId=1092297&signature=9aa6e1898e911e3e>
> 
> 
> 
> 
> -- 
> Ashish Kumar Gahlot
> III year, UG
> Govt. Engg. College, Ajmer, India
> 
> 
> _______________________________________________
> HelenOS-devel mailing list
> [email protected]
> http://lists.modry.cz/listinfo/helenos-devel
> 

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to