version 1.22, 2009/09/23 12:03:30 |
version 1.23, 2009/10/13 13:11:06 |
|
|
} |
} |
|
|
out: |
out: |
if (sigterm) { |
/* |
printf("[terminated]\n"); |
* Print exit status message, unless running as a login shell where it |
return (1); |
* would either be pointless or irritating. |
} |
*/ |
switch (cctx->exittype) { |
if (!login_shell) { |
case CCTX_DIED: |
if (sigterm) { |
printf("[lost server]\n"); |
printf("[terminated]\n"); |
return (0); |
|
case CCTX_SHUTDOWN: |
|
printf("[server exited]\n"); |
|
return (0); |
|
case CCTX_EXIT: |
|
if (cctx->errstr != NULL) { |
|
printf("[error: %s]\n", cctx->errstr); |
|
return (1); |
return (1); |
} |
} |
printf("[exited]\n"); |
switch (cctx->exittype) { |
return (0); |
case CCTX_DIED: |
case CCTX_DETACH: |
printf("[lost server]\n"); |
printf("[detached]\n"); |
return (0); |
return (0); |
case CCTX_SHUTDOWN: |
default: |
printf("[server exited]\n"); |
printf("[unknown error]\n"); |
return (0); |
return (1); |
case CCTX_EXIT: |
|
if (cctx->errstr != NULL) { |
|
printf("[error: %s]\n", cctx->errstr); |
|
return (1); |
|
} |
|
printf("[exited]\n"); |
|
return (0); |
|
case CCTX_DETACH: |
|
printf("[detached]\n"); |
|
return (0); |
|
default: |
|
printf("[unknown error]\n"); |
|
return (1); |
|
} |
} |
} |
} |
} |
|
|