Il 17/02/2014 16:44, Stefan Hajnoczi ha scritto:
}+static void sigabrt_handler(int signo) +{ + qtest_end(); +} +
void qtest_quit(QTestState *s) { int status; if (s->qemu_pid != -1) { kill(s->qemu_pid, SIGTERM); waitpid(s->qemu_pid, &status, 0); } close(s->fd); close(s->qmp_fd); g_string_free(s->rx, true); g_free(s); }Not async-signal safe. You need to ignore the g_string_free and g_free (perhaps even the closes) if calling from the sigabrt_handler.
Paolo