Mercurial > hg > xemacs-beta
comparison src/process-unix.c @ 458:c33ae14dd6d0 r21-2-44
Import from CVS: tag r21-2-44
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:42:25 +0200 |
parents | 576fb035e263 |
children | 0784d089fdc9 |
comparison
equal
deleted
inserted
replaced
457:4b9290a33024 | 458:c33ae14dd6d0 |
---|---|
1539 created as a process group leader. */ | 1539 created as a process group leader. */ |
1540 pgid = XINT (p->pid); | 1540 pgid = XINT (p->pid); |
1541 | 1541 |
1542 /* Finally send the signal. */ | 1542 /* Finally send the signal. */ |
1543 if (EMACS_KILLPG (pgid, signo) == -1) | 1543 if (EMACS_KILLPG (pgid, signo) == -1) |
1544 error ("kill (%ld, %ld) failed: %s", | 1544 { |
1545 (long) pgid, (long) signo, strerror (errno)); | 1545 /* It's not an error if our victim is already dead. |
1546 And we can't rely on the result of killing a zombie, since | |
1547 XPG 4.2 requires that killing a zombie fail with ESRCH, | |
1548 while FIPS 151-2 requires that it succeeds! */ | |
1549 #ifdef ESRCH | |
1550 if (errno != ESRCH) | |
1551 #endif | |
1552 error ("kill (%ld, %ld) failed: %s", | |
1553 (long) pgid, (long) signo, strerror (errno)); | |
1554 } | |
1546 } | 1555 } |
1547 | 1556 |
1548 /* Send signal SIGCODE to any process in the system given its PID. | 1557 /* Send signal SIGCODE to any process in the system given its PID. |
1549 Return zero if successful, a negative number upon failure. */ | 1558 Return zero if successful, a negative number upon failure. */ |
1550 | 1559 |