<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1514388345974_2844" dir="ltr">It's been awhile since I've asked a question on here, mainly because I've been using other languages since, but here goes. I have a CGI application that accepts selection criteria from a user that is then used to select data from a MySQL database and generate reports. </div><div id="yui_3_16_0_ym19_1_1514388345974_2844" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1514388345974_2844" dir="ltr">Some of these reports can take some time to run so when the main CGI script is called I want to spawn off a call to a script that does the data selection and report generation. I've tried the following and it appears that the child is called fine but the parent script still waits for it (child process) to finish.</div><div id="yui_3_16_0_ym19_1_1514388345974_2844" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1514388345974_2844" dir="ltr">#*** $parmList is just a list of name-value pairings</div><div dir="ltr" id="yui_3_16_0_ym19_1_1514388345974_3023">if ($pid = fork) {</div><div dir="ltr" id="yui_3_16_0_ym19_1_1514388345974_3024">} else {</div><div dir="ltr" id="yui_3_16_0_ym19_1_1514388345974_3025">      close (STDOUT);</div><div dir="ltr" id="yui_3_16_0_ym19_1_1514388345974_3026">      exec ($parmSetup{"directory"}{"intExecPath"}."XMLStandAlone.exe ".$parmList);</div><div id="yui_3_16_0_ym19_1_1514388345974_2844" dir="ltr">}<br></div><div id="yui_3_16_0_ym19_1_1514388345974_2844" dir="ltr"><br></div></div></body></html>