comparison src/process-unix.c @ 462:0784d089fdc9 r21-2-46

Import from CVS: tag r21-2-46
author cvs
date Mon, 13 Aug 2007 11:44:37 +0200
parents c33ae14dd6d0
children f42052c80e1c
comparison
equal deleted inserted replaced
461:120ed4009e51 462:0784d089fdc9
1286 Bufbyte chunkbuf[512]; 1286 Bufbyte chunkbuf[512];
1287 Bytecount chunklen; 1287 Bytecount chunklen;
1288 1288
1289 while (1) 1289 while (1)
1290 { 1290 {
1291 ssize_t writeret; 1291 Lstream_data_count writeret;
1292 1292
1293 chunklen = Lstream_read (lstream, chunkbuf, 512); 1293 chunklen = Lstream_read (lstream, chunkbuf, 512);
1294 if (chunklen <= 0) 1294 if (chunklen <= 0)
1295 break; /* perhaps should abort() if < 0? 1295 break; /* perhaps should abort() if < 0?
1296 This should never happen. */ 1296 This should never happen. */
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 { 1544 {
1545 /* It's not an error if our victim is already dead. 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 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, 1547 XPG 4.2 requires that killing a zombie fail with ESRCH,
1548 while FIPS 151-2 requires that it succeeds! */ 1548 while FIPS 151-2 requires that it succeeds! */
1549 #ifdef ESRCH 1549 #ifdef ESRCH
1550 if (errno != ESRCH) 1550 if (errno != ESRCH)
1551 #endif 1551 #endif
1552 error ("kill (%ld, %ld) failed: %s", 1552 error ("kill (%ld, %ld) failed: %s",
1553 (long) pgid, (long) signo, strerror (errno)); 1553 (long) pgid, (long) signo, strerror (errno));