/* On UNIX, returns the process ID as a decimal string. On Windows, returns the result of GetProcessId() also as a string.  */
const gchar* g_subprocess_get_identifier(GSubprocess *subprocess)
/* On UNIX, returns the process ID as a decimal string. On Windows, returns the result of GetProcessId() also as a string.  */
const gchar* g_subprocess_get_identifier(GSubprocess *subprocess)
{
  g_return_val_if_fail (G_IS_SUBPROCESS (subprocess), NULL);
  if (subprocess->pid)
    return subprocess->identifier;
  else
    return NULL;
}