comparison src/gui.c @ 5045:bbe4bd64c68c v7.3.1266

updated for version 7.3.1266 Problem: QNX: GUI fails to start. Solution: Remove the QNX-specific #ifdef. (Sean Boudreau)
author Bram Moolenaar <bram@vim.org>
date Sat, 29 Jun 2013 15:19:21 +0200
parents ba7db05e1482
children cf52d2a8c05c
comparison
equal deleted inserted replaced
5044:1b455771dad6 5045:bbe4bd64c68c
204 * and the child will return. 204 * and the child will return.
205 */ 205 */
206 static void 206 static void
207 gui_do_fork() 207 gui_do_fork()
208 { 208 {
209 #ifdef __QNXNTO__
210 procmgr_daemon(0, PROCMGR_DAEMON_KEEPUMASK | PROCMGR_DAEMON_NOCHDIR |
211 PROCMGR_DAEMON_NOCLOSE | PROCMGR_DAEMON_NODEVNULL);
212 gui_attempt_start();
213 return;
214 #else
215 int pipefd[2]; /* pipe between parent and child */ 209 int pipefd[2]; /* pipe between parent and child */
216 int pipe_error; 210 int pipe_error;
217 int status; 211 int status;
218 int exit_status; 212 int exit_status;
219 pid_t pid = -1; 213 pid_t pid = -1;
314 } 308 }
315 309
316 /* If we failed to start the GUI, exit now. */ 310 /* If we failed to start the GUI, exit now. */
317 if (!gui.in_use) 311 if (!gui.in_use)
318 exit(1); 312 exit(1);
319 #endif
320 } 313 }
321 314
322 /* 315 /*
323 * Read from a pipe assumed to be connected to the child process (this 316 * Read from a pipe assumed to be connected to the child process (this
324 * function is called from the parent). 317 * function is called from the parent).