I just did a SVN update (11290), cmake, and make.  It exits cleanly here.  Mac 
OS X 10.10.5 Yosemite.
Compiler:
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

Bruce
> On Aug 24, 2017, at 9:04 AM, Erich Steinböck <[email protected]> 
> wrote:
> 
> This issue doesn't show up on Windows or Linux. I can't test on Mac.
> 
> Can anyone of you running ooRexx on Mac confirm it?  Does it happen for you 
> too?
> 
> We don't have too many fork()'s in our Code - for this issue probably only 
> those in APIService and SysLocalAPIManager might be relevant. Would anyone be 
> willing to add printf's after each fork, giving the returned pid, and build 
> and run it.  Rony, maybe?
> 
> This might pinpoint which of the forks is the culprit.
> 
> Thanks!!
> 
> ---------- Forwarded message ----------
> From: Marc Simpson <[email protected] <mailto:[email protected]>>
> Date: Thu, Aug 24, 2017 at 4:48 PM
> Subject: [oorexx:bugs] Re: #1475 ooRexx (r11290) doesn't exit cleanly on macOS
> To: "[oorexx:bugs]" <[email protected] 
> <mailto:[email protected]>>
> 
> 
> In answer to your questions:
> 
> * `oorexx` is a symlink to `rexx` in the installation target.
> * Yes, the process seems to linger indefinitely.
> * Yes, processes accumulate over time. (I first spotted the problem when I 
> had 50+ sleeping processes, all associated with the same script.)
> 
> Finally, here's the result of your test, run a few times:
> 
> ~~~
> $ for i in {1..5}; do oorexx -e "say SysQueryProcess('pid')"; done
> 31022
> 31024
> 31026
> 31028
> 31030
> $ ps ax | grep rexx | grep -v grep
> 31023   ??  Ss     0:00.00 oorexx -e say SysQueryProcess('pid')
> 31025   ??  Ss     0:00.00 oorexx -e say SysQueryProcess('pid')
> 31027   ??  Ss     0:00.00 oorexx -e say SysQueryProcess('pid')
> 31029   ??  Ss     0:00.00 oorexx -e say SysQueryProcess('pid')
> 31031   ??  Ss     0:00.00 oorexx -e say SysQueryProcess('pid')
> ~~~
> 
> (Note that I killed 16195 just before running this.)
> 
> 
> ---
> 
> ** [bugs:#1475] ooRexx (r11290) doesn't exit cleanly on macOS**
> 
> **Status:** open
> **Group:** 5.0.0
> **Created:** Wed Aug 23, 2017 11:01 PM UTC by Marc Simpson
> **Last Updated:** Thu Aug 24, 2017 08:57 AM UTC
> **Owner:** nobody
> 
> 
> ooRexx doesn't exit cleanly on macOS, leaving behind a sleeping process:
> 
> ~~~
> $ ps ax | grep oorexx | grep -v grep
> $ oorexx -e 'say 123'
> 123
> $ ps ax | grep oorexx | grep -v grep
> 16195   ??  Ss     0:00.00 oorexx -e say 123
> $ oorexx -v
> Open Object Rexx Version 5.0.0
> Build date: Aug 23 2017
> Addressing mode: 64
> [...]
> ~~~
> 
> N.B. I'm unable to reproduce the problem on Linux.
> 
> 
> ---
> 
> Sent from sourceforge.net <http://sourceforge.net/> because you indicated 
> interest in <https://sourceforge.net/p/oorexx/bugs/1475/ 
> <https://sourceforge.net/p/oorexx/bugs/1475/>>
> 
> 
> 
> To unsubscribe from further messages, please visit 
> <https://sourceforge.net/auth/subscriptions/ 
> <https://sourceforge.net/auth/subscriptions/>>
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! 
> http://sdm.link/slashdot_______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to