char *errorposition;
} reply_t;
+static int exit_code = 0;
static reply_t last_reply;
static int reply_boolean_cb(void *params, int val) {
fprintf(stderr, "ERROR: %s\n", last_reply.errorposition);
}
fprintf(stderr, "ERROR: %s\n", last_reply.error);
+ exit_code = 2;
}
return 1;
}
close(sockfd);
- return 0;
+ return exit_code;
}
i3-msg is a sample implementation for a client using the unix socket IPC
interface to i3.
+=== Exit status:
+
+0:
+if OK,
+1:
+if invalid syntax or unable to connect to ipc-socket
+2:
+if i3 returned an error processing your command(s)
+
== EXAMPLES
------------------------------------------------