[TxMt] Re: showing preview of css colors

Allan Odgaard mailinglist at textmate.org
Tue May 31 13:12:38 UTC 2016


On 31 May 2016, at 14:57, Jacob Carlborg wrote:

> I tried using fork and sleep in the "SCM Diff Gutter" command, didn't 
> help. Do you have a code example on how fork should be used?

You need to also close stdout/err, example:

	pid = fork do
	  STDOUT.reopen(open('/dev/null', 'w'))
	  STDERR.reopen(open('/dev/null', 'w'))

	  sleep 5
	end
	Process.detach(pid)


More information about the textmate mailing list