version 1.14, 2009/08/12 06:04:28 |
version 1.15, 2009/09/02 20:00:10 |
|
|
} |
} |
} |
} |
} |
} |
|
|
if (sigterm) { |
if (sigterm) { |
printf("[terminated]\n"); |
printf("[terminated]\n"); |
return (1); |
return (1); |
|
|
case CCTX_DETACH: |
case CCTX_DETACH: |
printf("[detached]\n"); |
printf("[detached]\n"); |
return (0); |
return (0); |
default: |
case CCTX_ERROR: |
printf("[error: %s]\n", cctx->errstr); |
printf("[error: %s]\n", cctx->errstr); |
return (1); |
return (1); |
|
default: |
|
printf("[error: unknown error]\n"); |
|
return (1); |
} |
} |
} |
} |
|
|
|
|
|
|
printdata.msg[(sizeof printdata.msg) - 1] = '\0'; |
printdata.msg[(sizeof printdata.msg) - 1] = '\0'; |
cctx->errstr = xstrdup(printdata.msg); |
cctx->errstr = xstrdup(printdata.msg); |
|
cctx->exittype = CCTX_ERROR; |
imsg_free(&imsg); |
imsg_free(&imsg); |
return (-1); |
return (-1); |
case MSG_EXIT: |
case MSG_EXIT: |