kill(2) arguments were backwards
authorewt <devnull@localhost>
Thu, 31 Oct 1996 19:54:26 +0000 (19:54 +0000)
committerewt <devnull@localhost>
Thu, 31 Oct 1996 19:54:26 +0000 (19:54 +0000)
CVS patchset: 1139
CVS date: 1996/10/31 19:54:26

lib/install.c

index b7ea9d9..e44e0fe 100644 (file)
@@ -668,14 +668,14 @@ static int installArchive(char * prefix, int fd, struct fileToInstall * files,
        if (bytesRead < 0) {
             cpioFailed = 1;
             childDead = 1;
-            kill(SIGTERM, child);
+            kill(child, SIGTERM);
        } else if (bytesRead == 0) {
             /* if it's not dead yet, it will be when we close the pipe */
             childDead = 1;
        } else if (bytesRead && write(p[1], buf, bytesRead) != bytesRead) {
             cpioFailed = 1;
             childDead = 1;
-            kill(SIGTERM, child);
+            kill(child, SIGTERM);
        }
 
        if (needSecondPipe) {