### Method

# Gio Subprocess get_if_exited

since: 2.40

#### Declaration [src]

    gboolean
    g_subprocess_get_if_exited (
      GSubprocess* subprocess
    )

#### Description [src]

Check if the given subprocess exited normally (ie: by way of `exit()` or return from main()).

This is equivalent to the system WIFEXITED macro.

It is an error to call this function before `g_subprocess_wait()` has returned.

Available since: 2.40

#### Return value

Type: `gboolean`

`TRUE` if the case of a normal exit.