A newbie question here...
I have a requirement to spin off a SQL loader process after a web page (a
form which is qualified and accepted) has been submitted.  Does it make
sense, or more importantly, is it dangerous to apply a "fork" at the end of
a module such as this:


sub handler {
 # do some qualification stuff here and accept the form submission...
 if ($pid = fork) {
  # parent
  # ...whatever i need to accomplish to deliver return html code
  return OK
 } elsif {
  # child
  exec($sql_loader);
 } else {
  # ...whatever i ned to do to recover errors
  return DECLINED
 }

}

Are there any dangers in doing something like this?  Or is there a more
efficient way to accomplish the same thing?

Thanks for the advice,
Kirk

Reply via email to