| CODENOTIFIER | HelpYou are not signed inSign in |
Project: taskr
Revision: 206
Author: matt.zukowski
Date: 03 Jul 2008 13:37:31
Changes:trying out 'dont_wait' parameter that enables forking
Files:| ... | ...@@ -49,7 +49,11 @@ | |
| 49 | 49 | end |
| 50 | 50 | end |
| 51 | 51 | end |
| 52 | Process.detach(pid) | |
| 52 | if params[:dont_wait] | |
| 53 | Process.detach(pid) | |
| 54 | else | |
| 55 | pid.join | |
| 56 | end | |
| 53 | 57 | err = false |
| 54 | 58 | rescue => e |
| 55 | 59 | output << "#{e.class}: #{e}\n\nBACKTRACE:\n#{e.backtrace.join("\n")}" |