]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Fix bug 4463. The crash was due to a call to X from inside a child process.
[lyx.git] / src / Buffer.cpp
index 0fff4f4157e236813ffae6d79f863fb3cfe3ad0c..90b47b4e40089c6897e0f7cd85bd8daac60cde9e 100644 (file)
@@ -2260,14 +2260,12 @@ private:
 };
 
 
-#if !defined (HAVE_FORK)
-# define fork() -1
-#endif
-
 int AutoSaveBuffer::generateChild()
 {
        // tmp_ret will be located (usually) in /tmp
        // will that be a problem?
+       // Note that this calls ForkedCalls::fork(), so it's
+       // ok cross-platform.
        pid_t const pid = fork();
        // If you want to debug the autosave
        // you should set pid to -1, and comment out the fork.