mirror of
https://github.com/bstansell/conserver.git
synced 2024-12-19 04:47:53 +00:00
Merge pull request #106 from beckerg/beckerg/execslave
Improved execSlave printing...
This commit is contained in:
commit
6746187d86
@ -798,6 +798,8 @@ ConsDown(CONSENT *pCE, FLAG downHard, FLAG force)
|
|||||||
if (pCE->type == EXEC && pCE->execSlaveFD != 0) {
|
if (pCE->type == EXEC && pCE->execSlaveFD != 0) {
|
||||||
close(pCE->execSlaveFD);
|
close(pCE->execSlaveFD);
|
||||||
pCE->execSlaveFD = 0;
|
pCE->execSlaveFD = 0;
|
||||||
|
free(pCE->execSlave);
|
||||||
|
pCE->execSlave = NULL;
|
||||||
}
|
}
|
||||||
pCE->fup = 0;
|
pCE->fup = 0;
|
||||||
pCE->nolog = 0;
|
pCE->nolog = 0;
|
||||||
|
@ -2175,7 +2175,7 @@ CommandExamine(GRPENT *pGE, CONSCLIENT *pCLServing, CONSENT *pCEServing,
|
|||||||
char p = '\000';
|
char p = '\000';
|
||||||
switch (pCE->type) {
|
switch (pCE->type) {
|
||||||
case EXEC:
|
case EXEC:
|
||||||
d = pCE->execSlave;
|
d = (pCE->execSlaveFD > 0) ? pCE->execSlave : "(inactive)";
|
||||||
b = "Local";
|
b = "Local";
|
||||||
p = ' ';
|
p = ' ';
|
||||||
break;
|
break;
|
||||||
@ -2343,7 +2343,8 @@ CommandInfo(GRPENT *pGE, CONSCLIENT *pCLServing, CONSENT *pCEServing,
|
|||||||
case EXEC:
|
case EXEC:
|
||||||
FilePrint(pCLServing->fd, FLAGTRUE, "|:%s,%lu,%s,%d:",
|
FilePrint(pCLServing->fd, FLAGTRUE, "|:%s,%lu,%s,%d:",
|
||||||
(pCE->exec != (char *)0 ? pCE->exec : "/bin/sh"),
|
(pCE->exec != (char *)0 ? pCE->exec : "/bin/sh"),
|
||||||
(unsigned long)pCE->ipid, pCE->execSlave,
|
(unsigned long)pCE->ipid,
|
||||||
|
(pCE->execSlaveFD > 0) ? pCE->execSlave : "(inactive)",
|
||||||
FileFDNum(pCE->cofile));
|
FileFDNum(pCE->cofile));
|
||||||
break;
|
break;
|
||||||
#if HAVE_FREEIPMI
|
#if HAVE_FREEIPMI
|
||||||
|
Loading…
Reference in New Issue
Block a user