117{
118 sigset_t myset;
121 const char *eText;
122 char buff[8];
123 int i;
124
125
126
127 signal(SIGPIPE, SIG_IGN);
128 sigemptyset(&myset);
129 sigaddset(&myset, SIGPIPE);
130 sigaddset(&myset, SIGCHLD);
131 pthread_sigmask(SIG_BLOCK, &myset, NULL);
132
133
134
137
138
139
140 for (i = 1; i < argc; i++)
143 std::cerr <<"wait41: " <<eText <<" processing " <<argv[i] <<std::endl;
144 continue;
145 }
146 if (S_ISREG(
Stat.st_mode))
148 else if (S_ISDIR(
Stat.st_mode))
150 }
151
152
153
154 if (!gateFiles)
155 {std::cerr <<"wait41: Nothing to wait on!" <<std::endl;
156 std::cout <<"BAD\n" <<std::endl;
157 _exit(1);
158 }
159
160
161
163 std::cout <<eText <<std::endl;
164
165
166
167 if (
read(STDIN_FILENO, buff,
sizeof(buff))) {}
168 exit(0);
169}
const char * XrdSysE2T(int errcode)
static void setStackSize(size_t stsz, bool force=false)
static XrdOucTList * Expand(const char *Path, XrdOucTList *ptl)
static int Wait41(XrdOucTList *fP)