Determine if only one instance is running: Difference between revisions

Updated to work with Nim 1.4: replaced "writeln" by "writeLine".
(Updated to work with Nim 1.4: replaced "writeln" by "writeLine".)
Line 836:
var fd = getFileHandle fn.open fmReadWrite
if fcntl(fd, F_SETLK, addr fl) < 0:
stderr.writelnwriteLine "Another instance of this program is running"
quit 1
addQuitProc ooiUnlink
Anonymous user