Re: zombie process generated by g.execute_shell_commands

2020-03-03 Thread Edward K. Ream
On Tue, Mar 3, 2020 at 2:11 PM Matt Wilkie wrote: > > ... I click the mouse in the terminal but accidentally drag it. This >> hangs Leo. I think it's something about stdin waiting for a keystroke. >> That's why typing clears it - that terminates the readline on stdin. >> > > Yeah, this is a

Re: zombie process generated by g.execute_shell_commands

2020-03-03 Thread Matt Wilkie
> ... I click the mouse in the terminal but accidentally drag it. This > hangs Leo. I think it's something about stdin waiting for a keystroke. > That's why typing clears it - that terminates the readline on stdin. > Yeah, this is a generic Windows Command Prompt window problem. I use the

Re: zombie process generated by g.execute_shell_commands

2020-03-02 Thread Edward K. Ream
On Mon, Mar 2, 2020 at 8:46 AM Thomas Passin wrote: > I believe that this happens when you accidentally cause an event in the > Windows cmd terminal. I'm referring to the terminal from which Leo is > launched (i.e., with python -m leo.core.runLeo). It's not only during > unit testing. For me,

Re: zombie process generated by g.execute_shell_commands

2020-03-02 Thread Thomas Passin
I believe that this happens when you accidentally cause an event in the Windows cmd terminal. I'm referring to the terminal from which Leo is launched (i.e., with python -m leo.core.runLeo). It's not only during unit testing. For me, the usual case is that I want to switch to the terminal to

Re: zombie process generated by g.execute_shell_commands

2020-02-12 Thread Edward K. Ream
On Tue, Feb 11, 2020 at 10:14 PM Xu Wang wrote: > updated to devel 9b6f29d12..93abd72c6, the problem fixed on my MacBook too. > > Thanks EKR. > You're welcome. Thanks for the confirmation. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor"

Re: zombie process generated by g.execute_shell_commands

2020-02-12 Thread Edward K. Ream
On Tue, Feb 11, 2020 at 4:29 PM Brian Theado wrote: > This is working fine for me now. I don't see zombie processes for the > exited background commands anymore. Nice work. > Well, you were the one who made it work :-) Edward -- You received this message because you are subscribed to the

Re: zombie process generated by g.execute_shell_commands

2020-02-11 Thread Xu Wang
updated to devel 9b6f29d12..93abd72c6, the problem fixed on my MacBook too. Thanks EKR. Brian Theado 于2020年2月12日周三 上午5:29写道: > This is working fine for me now. I don't see zombie processes for the > exited background commands anymore. Nice work. > > On Sun, Feb 9, 2020 at 8:07 AM Edward K.

Re: zombie process generated by g.execute_shell_commands

2020-02-11 Thread Brian Theado
This is working fine for me now. I don't see zombie processes for the exited background commands anymore. Nice work. On Sun, Feb 9, 2020 at 8:07 AM Edward K. Ream wrote: > On Sunday, February 9, 2020 at 6:08:42 AM UTC-6, Edward K. Ream wrote: > > > I have just created #1489 >

Re: zombie process generated by g.execute_shell_commands

2020-02-09 Thread Edward K. Ream
On Sunday, February 9, 2020 at 6:08:42 AM UTC-6, Edward K. Ream wrote: > I have just created #1489 for this topic. Rev 98530b0 in devel attempts a

Re: zombie process generated by g.execute_shell_commands

2020-02-09 Thread Edward K. Ream
On Sat, Feb 8, 2020 at 10:11 PM Brian Theado wrote: > I just noticed the subprocess oabjects have a poll method ( https://docs.python.org/3/library/subprocess.html#subprocess.Popen.poll). Maybe if g.execute_shell_commands is called with 'not wait', then leo should save the proc object and at

Re: zombie process generated by g.execute_shell_commands

2020-02-08 Thread Brian Theado
On Sat, Feb 8, 2020 at 4:41 AM Edward K. Ream wrote: > On Thu, Feb 6, 2020 at 1:08 PM Xu Wang wrote: > >> Dear Leo Developer, >> >> I created one button in Leo, the corresponding script is: >> >> c.save() >> g.execute_shell_commands(['git -C /Users//leodata add austin.leo', >> 'git -C

Re: zombie process generated by g.execute_shell_commands

2020-02-08 Thread Edward K. Ream
On Thu, Feb 6, 2020 at 1:08 PM Xu Wang wrote: > Dear Leo Developer, > > I created one button in Leo, the corresponding script is: > > c.save() > g.execute_shell_commands(['git -C /Users//leodata add austin.leo', > 'git -C /Users//leodata commit -mupdates', ' -C /Users//leodata >

zombie process generated by g.execute_shell_commands

2020-02-06 Thread Xu Wang
Dear Leo Developer, I created one button in Leo, the corresponding script is: c.save() g.execute_shell_commands(['git -C /Users//leodata add austin.leo', 'git -C /Users//leodata commit -mupdates', ' -C /Users//leodata push']) Basically, it will save the changes and do a git