This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
amigaos4: move the amigaos exec code under amigaos4
authorAndy Broad <andy@broad.ology.org.uk>
Sun, 13 Sep 2015 18:37:43 +0000 (14:37 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 16 Sep 2015 11:44:29 +0000 (07:44 -0400)
commit738ab09f5846887e462080d6443fb8d1e751f247
tree28815d963b6369d436789f18cf4551d662b3e171
parentdee43f802e849f37f65552e91b5dda77197dc05b
amigaos4: move the amigaos exec code under amigaos4

Largely reimplements 839a9f0254fa14d7e8432c6340262ff4.

The upside is that now doio.c and pp_sys.c have much less AmigaOS
specific ifdefs. As a downside, the exec code is now forked (pun
only partially accidental.)

The earlier story regarding fork+exec, that the AmigaOS creating
thread doesn't terminate but instead continues running is both true
and false.  The more detailed story is that the user-observable
behaviour is as with POSIX/UNIX.  The thread that created the new
"task" (to use the AmigaOS terms) does hang around -- but all it
does is to wait for the new task to terminate, and more importantly,
it holds on to the resources like filehandles.  If the task were to
immediately terminate, the resources would be reclaimed by the kernel.
amigaos4/amigaio.c
amigaos4/amigaio.h
amigaos4/amigaos.c
amigaos4/amigaos.h
doio.c
embed.fnc
perl.h
pp_sys.c
proto.h