332 |
if (Aabort) kill(Apid, SIGTERM); |
if (Aabort) kill(Apid, SIGTERM); |
333 |
waitpid(Apid, &Lcmdstatus, 0); |
waitpid(Apid, &Lcmdstatus, 0); |
334 |
if ((WIFEXITED(Lcmdstatus) && WEXITSTATUS(Lcmdstatus)!=0) || (!(WIFEXITED(Lcmdstatus)))) { |
if ((WIFEXITED(Lcmdstatus) && WEXITSTATUS(Lcmdstatus)!=0) || (!(WIFEXITED(Lcmdstatus)))) { |
335 |
_DEB("oui une erreur\n"); |
_DEB("oui une erreur [%d]\n", Lcmdstatus); |
336 |
if (Aerror && !*Aerror) { |
if (Aerror && !*Aerror) { |
337 |
g_set_error(Aerror, GRAVEMAN_ERROR, _ERR_UNKNOWN_ERROR, Adefmsg ? Adefmsg : _("Operation failed")); |
g_set_error(Aerror, GRAVEMAN_ERROR, _ERR_UNKNOWN_ERROR, Adefmsg ? Adefmsg : _("Operation failed")); |
338 |
} |
} |