|
Message-ID: <20150508182435.GA25666@openwall.com> Date: Fri, 8 May 2015 21:24:35 +0300 From: Aleksey Cherepanov <lyosha@...nwall.com> To: john-dev@...ts.openwall.com Subject: Re: [core john] [Johnny] Windows event loop On Fri, May 08, 2015 at 01:43:16PM -0400, Mathieu Laprise wrote: > On Fri, May 8, 2015 at 12:39 PM, Aleksey Cherepanov <lyosha@...nwall.com> > wrote: > > > If you AttachConsole(), can't you just send Ctrl-C? > > > > Though it is not clear to me: does CTRL_BREAK make john to save state > > on exit? Or is it just a way to kill the process? > > > If you mean sending Ctrl-C to stdin, I saw there > http://www.qtcentre.org/threads/36911-Can-t-send-a-Ctrl-C-to-a-QProcess-%28Win32%29, > that it didn't work the same way if we send it with stdin(at least on unix). > > If you mean sending CTRL_C_EVENT, > In John, signal.c, all CTRL_XXX_EVENTS are handled by this code for > Windows. I did not read enough, you talked about KindDragon's answer. > #ifdef __CYGWIN32__ > > SetConsoleCtrlHandler(sig_handle_abort_ctrl, TRUE); > > #endif It looks like it is for cygwin builds. But there may be a mingw build, no? If you do SetConsoleCtrlHandler(NULL, TRUE); does CTRL_BREAK close johnny? Thanks! -- Regards, Aleksey Cherepanov
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.