Delete unused, and somewhat confusing, variable to break out of TCP poll loops. --- pbs-2.3.12-pw/src/cmds/pbsdsh.c | 2 -- pbs-2.3.12-pw/src/lib/Libifl/tcp_dis.c | 3 --- 2 files changed, 5 deletions(-) diff -puN src/cmds/pbsdsh.c~unused-tcp-interrupt src/cmds/pbsdsh.c --- pbs-2.3.12/src/cmds/pbsdsh.c~unused-tcp-interrupt 2004-04-17 11:01:39.000000000 -0400 +++ pbs-2.3.12-pw/src/cmds/pbsdsh.c 2004-04-17 11:01:39.000000000 -0400 @@ -243,7 +243,6 @@ main(argc, argv, envp) extern int optind; extern char *optarg; - extern int pbs_tcp_interrupt; while ((c = getopt(argc, argv, "c:n:sv")) != EOF) { switch(c) { @@ -314,7 +313,6 @@ main(argc, argv, envp) sigaction(SIGHUP, &act, NULL); sigaction(SIGINT, &act, NULL); sigaction(SIGTERM, &act, NULL); - pbs_tcp_interrupt = 1; #ifdef DEBUG if (rootrot.tm_parent == TM_NULL_TASK) { diff -puN src/lib/Libifl/tcp_dis.c~unused-tcp-interrupt src/lib/Libifl/tcp_dis.c --- pbs-2.3.12/src/lib/Libifl/tcp_dis.c~unused-tcp-interrupt 2004-04-17 11:01:39.000000000 -0400 +++ pbs-2.3.12-pw/src/lib/Libifl/tcp_dis.c 2004-04-17 11:01:39.000000000 -0400 @@ -113,7 +113,6 @@ static struct tcp_chan **tcparray = NULL static int tcparraymax = 0; time_t pbs_tcp_timeout = 10; -int pbs_tcp_interrupt = 0; /* * tcp_pack_buff - pack existing data into front of buffer @@ -178,8 +177,6 @@ static int tcp_read(fd) FD_SET(fd, &readset); i = select(FD_SETSIZE, &readset, (fd_set *)0, (fd_set *)0, &timeout); - if (pbs_tcp_interrupt) - break; } while ((i == -1) && (errno == EINTR)); if (i <= 0) return i; _