chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2666d7d
)
Move the program name to the right place when constructing the arguments
author
mdw
<mdw>
Tue, 19 Jun 2001 22:09:37 +0000
(22:09 +0000)
committer
mdw
<mdw>
Tue, 19 Jun 2001 22:09:37 +0000
(22:09 +0000)
to pass to a new server.
client.c
patch
|
blob
|
blame
|
history
diff --git
a/client.c
b/client.c
index db58ed5f967749cd1910a858a28186dc4e8d6d43..8890f6c0682b3081b63c2146464f626793e73fac 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: client.c,v 1.
7 2001/02/22 09:07:54
mdw Exp $
+ * $Id: client.c,v 1.
8 2001/06/19 22:09:37
mdw Exp $
*
* Client for TrIPE
*
*
* Client for TrIPE
*
@@
-29,6
+29,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: client.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: client.c,v $
+ * Revision 1.8 2001/06/19 22:09:37 mdw
+ * Move the program name to the right place when constructing the arguments
+ * to pass to a new server.
+ *
* Revision 1.7 2001/02/22 09:07:54 mdw
* Write a pidfile on request, and delete it when finished.
*
* Revision 1.7 2001/02/22 09:07:54 mdw
* Write a pidfile on request, and delete it when finished.
*
@@
-413,10
+417,10
@@
int main(int argc, char *argv[])
#endif
sigaction(SIGCHLD, &sa, 0);
#endif
sigaction(SIGCHLD, &sa, 0);
- DA_UNSHIFT(&spawnopts, (char *)spawnpath);
DA_UNSHIFT(&spawnopts, (char *)sock);
DA_UNSHIFT(&spawnopts, "-a");
DA_UNSHIFT(&spawnopts, "-d.");
DA_UNSHIFT(&spawnopts, (char *)sock);
DA_UNSHIFT(&spawnopts, "-a");
DA_UNSHIFT(&spawnopts, "-d.");
+ DA_UNSHIFT(&spawnopts, (char *)spawnpath);
DA_PUSH(&spawnopts, 0);
if (socketpair(PF_UNIX, SOCK_STREAM, 0, pfd))
die(EXIT_FAILURE, "error from socketpair: %s", strerror(errno));
DA_PUSH(&spawnopts, 0);
if (socketpair(PF_UNIX, SOCK_STREAM, 0, pfd))
die(EXIT_FAILURE, "error from socketpair: %s", strerror(errno));