- ret = client_open(argc, argv, &pcd);
- if (ret < 0) /* can not use PARA_LOG here */
- exit(EXIT_FAILURE);
- pcd->task.event_handler = client_event_handler;
- ret = sched(&s);
+ /*
+ * We add buffer tree nodes for stdin and stdout even though
+ * only one of them will be needed. This simplifies the code
+ * a bit wrt. to the buffer tree setup.
+ */
+ sit.btrn = btr_new_node(&(struct btr_node_description)
+ EMBRACE(.name = "stdin"));
+ ret = client_open(argc, argv, &ct, &client_loglevel, sit.btrn, NULL);