]> git.lyx.org Git - lyx.git/blobdiff - src/support/forkedcall.C
remove unused stuff
[lyx.git] / src / support / forkedcall.C
index 4d4c1ac315a87f7d10db6257bcfbe6c1e4e879f5..e1d5ef50cfd04655cc54f83479cc4438c06fda5c 100644 (file)
@@ -38,6 +38,7 @@
 #include <boost/bind.hpp>
 
 #include <vector>
+#include <cerrno>
 
 #ifdef _WIN32
 # define SIGHUP 1
@@ -46,7 +47,6 @@
 # include <windows.h>
 
 #else
-# include <cerrno>
 # include <csignal>
 # include <cstdlib>
 # ifdef HAVE_UNISTD_H
@@ -361,10 +361,7 @@ int Forkedcall::generateChild()
                lyxerr << "</command>" << std::endl;
        }
 
-#if defined (__EMX__)
-       pid_t const cpid = spawnvp(P_SESSION|P_DEFAULT|P_MINIMIZE|P_BACKGROUND,
-                                  argv[0], &*argv.begin());
-#elif defined (_WIN32)
+#ifdef _WIN32
        pid_t const cpid = spawnvp(_P_NOWAIT, argv[0], &*argv.begin());
 #else // POSIX
        pid_t const cpid = ::fork();