Where is this fork you keep mentioning?
Holy cripes... I posted the wrong source! How did I manage that?
The call to &startup was replaced in a later version with
defined(my $pid = fork) or die "Cannot fork: $!";
unless ($pid) {
# Child process is here
system ('maincnc.exe');
}
# Parent process is here
Problem is fixed now, using
exit;after the system().
I must have accidentally opened the older version of the script after rebooting my computer, rather than the new version. Maybe I'd have had beter help if I posted the correct source!
You guys were great in helping me anyway. Thanks for all the feedback!
--
Believe nothing, no matter where you read it, or who said it - even if I have said it - unless it agrees with your own reason and your own common sense.
(Buddha)