in reply to forking in a cgi script

You should not use fork for this task at all. Just print the message, close STDOUT, STDIN, then call get_disorder.