* request of the client.
*/
ret = lttcomm_recv_unix_sock(sock, &lsm, sizeof(lsm));
- if (ret < 0) {
+ if (ret <= 0) {
continue;
}
/* No auxiliary data so only send the llm struct. */
goto end;
}
+ case UST_CREATE_TRACE:
+ {
+ int sock;
+ sock = connect_app(lsm->pid);
+
+ ret = ustctl_create_trace(sock, "auto");
+ if (ret < 0) {
+ ret = LTTCOMM_CREATE_FAIL;
+ } else {
+ ret = LTTCOMM_OK;
+ }
+
+ goto end;
+ }
case UST_LIST_APPS:
{
/* Stop right now if no apps */
{
switch (sig) {
case SIGPIPE:
+ return;
case SIGINT:
case SIGTERM:
cleanup();