Back to index

courier  0.68.2
Functions
comtrigger.c File Reference
#include "courier.h"
#include "localstatedir.h"
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

int trigger_open (int mode)
void trigger (const char *command)

Function Documentation

void trigger ( const char *  command)

Definition at line 25 of file comtrigger.c.

{
int    fd=trigger_open(O_WRONLY | O_NDELAY);

       if (fd >= 0)
       {
              if (write( fd, command, strlen(command)))
                     ; /* ignore */
              close(fd);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

int trigger_open ( int  mode)

Definition at line 17 of file comtrigger.c.

{
int    fd;

       fd=open(TMPDIR "/trigger", mode);
       return (fd);
}

Here is the caller graph for this function: