Mercurial > hg > xemacs-beta
comparison src/sysdep.c @ 400:a86b2b5e0111 r21-2-30
Import from CVS: tag r21-2-30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:14:34 +0200 |
parents | 74fd4e045ea6 |
children | 2f8bb876ab1d |
comparison
equal
deleted
inserted
replaced
399:376370fb5946 | 400:a86b2b5e0111 |
---|---|
697 nice (-emacs_priority); /* Give the new shell the default priority */ | 697 nice (-emacs_priority); /* Give the new shell the default priority */ |
698 #endif | 698 #endif |
699 | 699 |
700 #ifdef WINDOWSNT | 700 #ifdef WINDOWSNT |
701 /* Waits for process completion */ | 701 /* Waits for process completion */ |
702 pid = _spawnlp (_P_WAIT, sh, sh, NULL); | 702 pid = (HANDLE) _spawnlp (_P_WAIT, sh, sh, NULL); |
703 if (pid == NULL) | 703 if (pid == NULL) |
704 write (1, "Can't execute subshell", 22); | 704 write (1, "Can't execute subshell", 22); |
705 | 705 |
706 #else /* not WINDOWSNT */ | 706 #else /* not WINDOWSNT */ |
707 execlp (sh, sh, 0); | 707 execlp (sh, sh, 0); |
2650 va_list ap; | 2650 va_list ap; |
2651 | 2651 |
2652 va_start (ap, oflag); | 2652 va_start (ap, oflag); |
2653 mode = va_arg (ap, int); | 2653 mode = va_arg (ap, int); |
2654 va_end (ap); | 2654 va_end (ap); |
2655 | |
2656 PATHNAME_CONVERT_OUT (path); | |
2655 | 2657 |
2656 #ifdef WINDOWSNT | 2658 #ifdef WINDOWSNT |
2657 /* Make all handles non-inheritable */ | 2659 /* Make all handles non-inheritable */ |
2658 oflag |= _O_NOINHERIT; | 2660 oflag |= _O_NOINHERIT; |
2659 #endif | 2661 #endif |