summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1992-05-01 06:20:46 +0000
committerJim Blandy <jimb@redhat.com>1992-05-01 06:20:46 +0000
commit58dbe9703ad1b598d0e3b45fb917c13f979ee6b6 (patch)
tree4ba1c7bf06cc9b1f84d2148672475cb4caee1659 /src/callproc.c
parent11d12b00fa218961e9ac962255739401c44aab08 (diff)
downloademacs-58dbe9703ad1b598d0e3b45fb917c13f979ee6b6.tar.gz
*** empty log message ***
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 68b447d401d..1a564ad7ccc 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -224,7 +224,11 @@ If you quit, the process is killed with SIGKILL.")
/* Tell SIGCHLD handler to look for this pid. */
synch_process_pid = pid;
/* Now let SIGCHLD come through. */
- sigsetmask (mask);
+ {
+ int dummy;
+
+ EMACS_SIGSETMASK (mask, dummy);
+ }
#endif
environ = save_environ;
@@ -530,11 +534,17 @@ init_callproc ()
register char **envp;
Lisp_Object tempdir;
- Vdata_directory = Ffile_name_as_directory (build_string (PATH_DATA));
+ {
+ char *data_dir = egetenv ("EMACSDATA");
+
+ Vdata_directory =
+ Ffile_name_as_directory
+ (build_string (data_dir ? data_dir : PATH_DATA));
+ }
- /* Turn PATH_EXEC into a path. `==' is just a string which we know
- will not be the name of an environment variable. */
- Vexec_path = decode_env_path ("==", PATH_EXEC);
+ /* Check the EMACSPATH environment variable, defaulting to the
+ PATH_EXEC path from paths.h. */
+ Vexec_path = decode_env_path ("EMACSPATH", PATH_EXEC);
Vexec_directory = Ffile_name_as_directory (Fcar (Vexec_path));
Vexec_path = nconc2 (decode_env_path ("PATH", ""), Vexec_path);