Verified Commit 4d7fa14d authored by Camil Staps's avatar Camil Staps 🚀

Fork that reloads cache should not continue handling requests afterwards

parent 83f4a4b6
......@@ -221,8 +221,8 @@ where
doInBackground f w
#! (pid,w) = fork w
| pid < 0 = abort "fork failed\n"
| pid > 0 = w // Parent: return directly
| pid == 0 = f w // Child: do function
| pid > 0 = w // Parent: return directly
| pid == 0 = snd $ exit 0 $ f w // Child: do function
:: LogMemory =
{ mem_ip :: IPAddress
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment