~~~c
int rc = gpgme_sign(dbfd, sigfd, key);
if (rc) {
    ...
~~~