[TxMt] os forking doesn't work from a TextMate command?

Allan Odgaard allan at macromates.com
Sat Sep 17 12:54:04 UTC 2005


On 16/09/2005, at 20.23, Kevin Ballard wrote:

> Gerd Knops's double-fork trick is probably what you want (generally  
> referred to as "daemonizing"). The reason for this is when you run  
> a command, TextMate waits for the command to finish, and apparently  
> when you fork it's still waiting for the forked process to finish.  
> But double-forking (and probably closing file descriptors) should  
> solve that issue.

It doesn't wait for the forked process, but it does wait for the  
process to close stdout/err. If the process forks, the child will  
inherit stdout/err, and that's the problem (so it should be closed).




More information about the textmate mailing list