/[graveman]/graveman/current/src/tools.c
ViewVC logotype

Diff of /graveman/current/src/tools.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by scresto, Mon May 2 23:18:32 2005 UTC revision 1.22 by scresto, Wed May 4 01:31:06 2005 UTC
# Line 329  void exit_prog(gint Apid, gboolean Aabor Line 329  void exit_prog(gint Apid, gboolean Aabor
329  {  {
330    gint Lcmdstatus = 0;    gint Lcmdstatus = 0;
331    
332    if (Aabort) kill(Apid, SIGTERM);    if (Aabort) {
333        kill(Apid, SIGTERM);
334        sleep(1);
335        kill(Apid, SIGTERM);
336      }
337    waitpid(Apid, &Lcmdstatus, 0);    waitpid(Apid, &Lcmdstatus, 0);
338    if ((WIFEXITED(Lcmdstatus) && WEXITSTATUS(Lcmdstatus)!=0) || (!(WIFEXITED(Lcmdstatus)))) {    if ((WIFEXITED(Lcmdstatus) && WEXITSTATUS(Lcmdstatus)!=0) || (!(WIFEXITED(Lcmdstatus)))) {
339      _DEB("oui une erreur [%d]\n", Lcmdstatus);      _DEB("oui une erreur [%d]\n", Lcmdstatus);

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26