in reply to meddling with forces I can't understand
You might have fork backwards. If it returns a true value, you're in the parent, not the child. If it returns a 0 you're in the child. If it returns undef, something is hosed.