[ruby-core:89702] Re: [Ruby trunk Feature#15277] at_exec

From: Eric Wong <normalperson@...>
Date: 2018-11-03 22:49:03 UTC
List: ruby-core #89702
ruby-core@marc-andre.ca wrote:
> normalperson (Eric Wong) wrote:
> >  Would this work for subprocesses? (system, spawn, ``,
> >  popen, ...)
> 
> I'm not sure I understand the question. `exec` effectively
> terminates the Ruby process although the `at_exit` callbacks
> are not called. `system`, `spawn`, etc... don't do such a
> thing and would thus would not call the `at_exec` callbacks.

system, spawn, etc. implicitly call exec, but only after fork/vfork
in a child.

Anyways, I'm still against this proposal because there is an
existing and generic way to support such behavior.

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next