Re: [i3] Killing a window's process

2015-10-02 Thread Jeff Abrahamson
Ah, why, yes, that would have worked.  Thanks.

Jeff Abrahamson
+33 6 24 40 01 57
+44 7920 594 255<-- only when I'm in the UK

*http://www.ml-week.com/fr/* * 2-5 novembre
2015*

http://jeff.purple.com/
http://blog.purple.com/jeff/

On 2 October 2015 at 11:18, Ingo Bürk  wrote:

> xkill?
>
> On 10/02/2015 11:12 AM, Jeff Abrahamson wrote:
> > I have a window whose process is not responding.  No problem, i3 lets me
> > kill windows, so I type that key combination.  Usually it works, but this
> > time it doesn't.
> >
> > My work-around is to use wininfo to find the window id of the dead but
> > mapped thing, bc to convert to decimal, use "ps aeww | grep" to find the
> > process with that window id in its environment, then send it a kill -15
> > (does nothing visible) and then a kill -9 (still mapped, but process now
> > shows as defunct).
> >
> >
> > So the* problem* (obviously not critical, since I have a work-around) is
> > how could I have avoided the wininfo -> ps -> bc -> kill thing.  Looking
> at
> > the code, it looks like i3's kill window is cmd_kill
> > () in
> commands.c.
> > (How can that get called with kill_mode_str == "client"?)  The chain is
> > then to call tree_close_con
> > () -> tree_close
> > () -> x_window_kill
> > () -> one_of {
> > xcb_destroy_window
> > <
> http://www.x.org/archive/current/doc/man/man3/xcb_destroy_window.3.xhtml
> >(),
> > xcb_kill_client
> > ()
> }.
> >
> > I think to answer that I'l have to run i3 with logging so I can see which
> > path it's taking at the end.  And wait for an appropriately hung process.
> > My initial hypothesis is that the window supports WM_DELETE_WINDOW but,
> > since the proc is hung, it never processes it.
> >
> >
> > Anyway, thanks for any insights.  Clearly this is as much about me
> learning
> > as anything else.
> >
> > Jeff Abrahamson
> > +33 6 24 40 01 57
> > +44 7920 594 255<-- only when I'm in the UK
> >
> > *http://www.ml-week.com/fr/* * 2-5
> novembre
> > 2015*
> >
> > http://jeff.purple.com/
> > http://blog.purple.com/jeff/
> >
>
>


Re: [i3] Killing a window's process

2015-10-02 Thread Ingo Bürk
xkill?

On 10/02/2015 11:12 AM, Jeff Abrahamson wrote:
> I have a window whose process is not responding.  No problem, i3 lets me
> kill windows, so I type that key combination.  Usually it works, but this
> time it doesn't.
>
> My work-around is to use wininfo to find the window id of the dead but
> mapped thing, bc to convert to decimal, use "ps aeww | grep" to find the
> process with that window id in its environment, then send it a kill -15
> (does nothing visible) and then a kill -9 (still mapped, but process now
> shows as defunct).
>
>
> So the* problem* (obviously not critical, since I have a work-around) is
> how could I have avoided the wininfo -> ps -> bc -> kill thing.  Looking at
> the code, it looks like i3's kill window is cmd_kill
> () in commands.c.
> (How can that get called with kill_mode_str == "client"?)  The chain is
> then to call tree_close_con
> () -> tree_close
> () -> x_window_kill
> () -> one_of {
> xcb_destroy_window
> (),
> xcb_kill_client
> () }.
>
> I think to answer that I'l have to run i3 with logging so I can see which
> path it's taking at the end.  And wait for an appropriately hung process.
> My initial hypothesis is that the window supports WM_DELETE_WINDOW but,
> since the proc is hung, it never processes it.
>
>
> Anyway, thanks for any insights.  Clearly this is as much about me learning
> as anything else.
>
> Jeff Abrahamson
> +33 6 24 40 01 57
> +44 7920 594 255<-- only when I'm in the UK
>
> *http://www.ml-week.com/fr/* * 2-5 novembre
> 2015*
>
> http://jeff.purple.com/
> http://blog.purple.com/jeff/
>