comparison src/callproc.c @ 167:85ec50267440 r20-3b10

Import from CVS: tag r20-3b10
author cvs
date Mon, 13 Aug 2007 09:45:46 +0200
parents 3bb7ccffb0c0
children 15872534500d
comparison
equal deleted inserted replaced
166:7a77eb660975 167:85ec50267440
453 453
454 fork_error = Qnil; 454 fork_error = Qnil;
455 #ifdef WINDOWSNT 455 #ifdef WINDOWSNT
456 pid = child_setup (filefd, fd1, fd_error, new_argv, current_dir); 456 pid = child_setup (filefd, fd1, fd_error, new_argv, current_dir);
457 #else /* not WINDOWSNT */ 457 #else /* not WINDOWSNT */
458 pid = vfork (); 458 pid = fork ();
459 459
460 if (pid == 0) 460 if (pid == 0)
461 { 461 {
462 if (fd[0] >= 0) 462 if (fd[0] >= 0)
463 close (fd[0]); 463 close (fd[0]);
494 494
495 if (pid < 0) 495 if (pid < 0)
496 { 496 {
497 if (fd[0] >= 0) 497 if (fd[0] >= 0)
498 close (fd[0]); 498 close (fd[0]);
499 report_file_error ("Doing vfork", Qnil); 499 report_file_error ("Doing fork", Qnil);
500 } 500 }
501 501
502 if (INTP (buffer)) 502 if (INTP (buffer))
503 { 503 {
504 if (fd[0] >= 0) 504 if (fd[0] >= 0)
625 Initialize inferior's priority, pgrp, connected dir and environment. 625 Initialize inferior's priority, pgrp, connected dir and environment.
626 then exec another program based on new_argv. 626 then exec another program based on new_argv.
627 627
628 This function may change environ for the superior process. 628 This function may change environ for the superior process.
629 Therefore, the superior process must save and restore the value 629 Therefore, the superior process must save and restore the value
630 of environ around the vfork and the call to this function. 630 of environ around the fork and the call to this function.
631 631
632 ENV is the environment for the subprocess. 632 ENV is the environment for the subprocess.
633 633
634 XEmacs: We've removed the SET_PGRP argument because it's already 634 XEmacs: We've removed the SET_PGRP argument because it's already
635 done by the callers of child_setup. 635 done by the callers of child_setup.