I have updated a post further up with the working code
In reply to Re^4: Pass signals and argv from C to embedded Perl by bliako in thread Pass signals and argv from C to embedded Perl by bliako