summaryrefslogtreecommitdiff
path: root/remote-cstms.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-03-10 22:15:39 +0000
committerRoland McGrath <roland@redhat.com>1992-03-10 22:15:39 +0000
commitee200385e43bd488284a8f93df74fce1cf7f892e (patch)
tree112b838a6999f683a22daf4f54c03206f9e84d5d /remote-cstms.c
parentc7ba58803052be0d68dc836a5af778729c50e3ff (diff)
downloadgunmake-ee200385e43bd488284a8f93df74fce1cf7f892e.tar.gz
Formerly remote-cstms.c.~4~
Diffstat (limited to 'remote-cstms.c')
-rw-r--r--remote-cstms.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/remote-cstms.c b/remote-cstms.c
index b940439..a8465ad 100644
--- a/remote-cstms.c
+++ b/remote-cstms.c
@@ -4,7 +4,7 @@
Please do not send bug reports or questions about it to
the Make maintainers.
-Copyright (C) 1988, 1989 Free Software Foundation, Inc.
+Copyright (C) 1988, 1989, 1992 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@@ -44,23 +44,21 @@ start_remote_job_p ()
return !CUSTOMS_FAIL (&permit.addr);
}
-/* Start a remote job running the command in ARGV.
- It gets standard input from STDIN_FD. On failure,
- return nonzero. On success, return zero, and set
- *USED_STDIN to nonzero if it will actually use STDIN_FD,
- zero if not, set *ID_PTR to a unique identification, and
- set *IS_REMOTE to zero if the job is local, nonzero if it
- is remote (meaning *ID_PTR is a process ID). */
+/* Start a remote job running the command in ARGV,
+ with environment from ENVP. It gets standard input from STDIN_FD. On
+ failure, return nonzero. On success, return zero, and set *USED_STDIN
+ to nonzero if it will actually use STDIN_FD, zero if not, set *ID_PTR to
+ a unique identification, and set *IS_REMOTE to zero if the job is local,
+ nonzero if it is remote (meaning *ID_PTR is a process ID). */
int
-start_remote_job (argv, stdin_fd, is_remote, id_ptr, used_stdin)
- char **argv;
+start_remote_job (argv, envp, stdin_fd, is_remote, id_ptr, used_stdin)
+ char **argv, **envp;
int stdin_fd;
int *is_remote;
int *id_ptr;
int *used_stdin;
{
- extern char **environ;
extern int vfork (), execve ();
PATH_VAR (cwd);
char waybill[MAX_DATA_SIZE], msg[128];
@@ -101,7 +99,7 @@ start_remote_job (argv, stdin_fd, is_remote, id_ptr, used_stdin)
/* Create a WayBill to give to the server. */
len = Customs_MakeWayBill (&permit, cwd, argv[0], argv,
- environ, retport, waybill);
+ envp, retport, waybill);
/* Send the request to the server, timing out in 20 seconds. */
timeout.tv_usec = 0;