From: Dan Nicolaescu Date: Mon, 12 Jul 2010 17:21:11 +0000 (-0700) Subject: Cleanups for src/callproc.c. X-Git-Url: https://git.hcoop.net/bpt/emacs.git/commitdiff_plain/ded80a25b7d4a088dd4c4a714666705749106138 Cleanups for src/callproc.c. * src/callproc.c (child_setup): Remove subprocesses conditional. Remove code dealing with SET_EMACS_PRIORITY, unused. --- diff --git a/src/ChangeLog b/src/ChangeLog index 82a50f48cc..267ca18b69 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2010-07-12 Dan Nicolaescu + * callproc.c (child_setup): Remove subprocesses conditional. + Remove code dealing with SET_EMACS_PRIORITY, unused. + * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional. * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT. diff --git a/src/callproc.c b/src/callproc.c index 4ad6bcf41e..fd2cf6356e 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1054,19 +1054,9 @@ child_setup (int in, int out, int err, register char **new_argv, int set_pgrp, L int pid = getpid (); -#ifdef SET_EMACS_PRIORITY - { - extern EMACS_INT emacs_priority; - - if (emacs_priority < 0) - nice (- emacs_priority); - } -#endif - -#ifdef subprocesses /* Close Emacs's descriptors that this process should not have. */ close_process_descs (); -#endif + /* DOS_NT isn't in a vfork, so if we are in the middle of load-file, we will lose if we call close_load_descs here. */ #ifndef DOS_NT