Subject: | fork |
$_@_.%_ writes:
Show quoted text
> slaven@rezic.de (Slaven Rezic) wrote in message-id:
> <50ce5237.0405170507.2b6c0ea0@posting.google.com>
I think it's best to report the bug on http://rt.cpan.org .
Regards,
Slaven
> >
> >etwas@rambler.ru (alex) wrote in message news:<f1654762.0405101424.786971fc@posting.google.com>...
> >
> >To clarify: does the following perl script work (it works on Linux
> >with 800.025 and 804.027)?
> >
> >#!/usr/bin/perl
> >use Tk;
> >$mw = tkinit;
> >warn $Tk::VERSION;
> >$mw->update;
> >if (fork == 0) {
> > CORE::exit;
> >}
> >MainLoop;
> >__END__
> >
> >Regards,
> > Slaven
>
> This script produces the following error:
>
> C:\DOCUME~2\ADMINI~1\Desktop>ver
>
> Microsoft Windows 2000 [Version 5.00.2195]
>
> C:\DOCUME~2\ADMINI~1\Desktop>tkfork
> 804.027 at C:\DOCUME~2\ADMINI~1\Desktop\tkfork.pl line 4.
>
> =========================================================================
> | The instruction at "0x28087393" referenced memory at "0x00000000". |
> | The memory could not be "written". |
> | |
> | Click on OK to terminate the program |
> | Click on CANCEL to debug the program |
> | |
> | [OK] [Cancel] |
> =========================================================================
>
> >> >
> >> > You have to exit the child process with CORE::exit():
> >> >
> >> > if (fork == 0) { CORE::exit() }
> >> >
> >> > There's also a bug in Tk804.025 and Tk804.026 which even makes using
> >> > POSIX::_exit() necessary.
> >> >
> >> > Regards,
> >> > Slaven
> >>
> >> tried all:
> >> if (fork == 0) { CORE::exit() }
> >> if (fork == 0) { POSIX::_exit() }
> >> if (fork == 0) { POSIX::exit() }
> >>
> >> program just quietly died.