# The parent process will then handle building the result.
# This avoids messy code to clear state accumulated while
# aggregating.
- defined(my $pid = fork) or error("Can’t fork: $!");
+ defined(my $pid = fork) or error("Can't fork: $!");
if (! $pid) {
loadstate();
IkiWiki::loadindex();
loadstate(); # if not already loaded
foreach my $feed (values %feeds) {
- if (grep { $_ eq $pagesources{$feed->{sourcepage}} } @$needsbuild) {
+ if (exists $pagesources{$feed->{sourcepage}} &&
+ grep { $_ eq $pagesources{$feed->{sourcepage}} } @$needsbuild) {
# Mark all feeds originating on this page as removable;
# preprocess will unmark those that still exist.
remove_feeds($feed->{sourcepage});