Use the pidfile filename rather than the fd because Cygwin for example
does not seem to support passed file descriptors and also OpenBSD
does not pass some test cases because of this.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
logerr(self->logfile, "Could not create pidfile: %s\n", strerror(errno));
goto error;
}
- pidfile_arg = g_strdup_printf("fd=%d", pidfile_fd);
+ // pass filename rather than fd (Cygwin)
+ pidfile_arg = g_strdup_printf("file=%s", pidfile);
argv = concat_arrays(self->swtpm_exec_l,
(gchar*[]){