#include <cctype>
#include <dirent.h>
#include <fcntl.h>
#include <signal.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <strings.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "XrdOuc/XrdOucTList.hh"
#include "XrdSys/XrdSysE2T.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include "XrdSys/XrdSysPlatform.hh"
#include "XrdSys/XrdSysPthread.hh"
Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 116 of file XrdWait41.cc.
127 signal(SIGPIPE, SIG_IGN);
129 sigaddset(&myset, SIGPIPE);
130 sigaddset(&myset, SIGCHLD);
131 pthread_sigmask(SIG_BLOCK, &myset, NULL);
140 for (i = 1; i < argc; i++)
143 std::cerr <<
"wait41: " <<eText <<
" processing " <<argv[i] <<std::endl;
146 if (S_ISREG(
Stat.st_mode))
148 else if (S_ISDIR(
Stat.st_mode))
155 {std::cerr <<
"wait41: Nothing to wait on!" <<std::endl;
156 std::cout <<
"BAD\n" <<std::endl;
163 std::cout <<eText <<std::endl;
167 if (
read(STDIN_FILENO, buff,
sizeof(buff))) {}
int stat(const char *path, struct stat *buf)
ssize_t read(int fildes, void *buf, size_t nbyte)
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)
References XrdW41Dirs::Expand(), read(), XrdSysThread::setStackSize(), Stat, stat(), XrdW41Gate::Wait41(), and XrdSysE2T().