Back to index

nordugrid-arc-nox  1.1.0~rc6
Classes | Functions
commfifo.h File Reference
#include <list>
#include <arc/Thread.h>
#include "users.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CommFIFO
class  CommFIFO::elem_t

Functions

bool SignalFIFO (const JobUser &user)
bool PingFIFO (const JobUser &user)

Function Documentation

bool PingFIFO ( const JobUser user)

Definition at line 138 of file commfifo.cpp.

                                   {
  int fd = OpenFIFO(user);
  // If nothing is listening open() will fail
  // so there is no need to send anything.
  if(fd == -1) return false;
  close(fd);
  return true;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool SignalFIFO ( const JobUser user)

Definition at line 129 of file commfifo.cpp.

                                     {
  int fd = OpenFIFO(user);
  if(fd == -1) return false;
  char c = 0;
  if(write(fd,&c,1) != 1) { close(fd); return false; };
  close(fd);
  return true;
}

Here is the call graph for this function:

Here is the caller graph for this function: