Re: vfork, exec and %SYSTEM-W-UNWIND

[email protected] ("Craig A. Berry")
Newsgroups perl.vmsperl
Message-ID <[email protected]>
On Dec 18, 2008, at 10:34 AM, Salvador Fandino wrote:

> I want to vfork and exec a child process from an XS subroutine, but  
> I always got the following error:
>
>  %SYSTEM-W-UNWIND, unwind currently in progress
>
> The same code as an standalone program just works.

The same code as a standalone program is really not the same code.  I  
would really recommend against using CRTL methods for creating  
subprocesses from XS code.  When you are writing XS you are extending  
Perl, so you should do whatever Perl does.  In this case, that  
probably means calling Perl_pp_system or Perl_do_spawn.

________________________________________
Craig A. Berry
mailto:[email protected]

"... getting out of a sonnet is much more
  difficult than getting in."
                  Brad Leithauser
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.