unlinkd

Defines

#define UNLINK_BUF_LEN   1024

Functions

int main (int argc, char *argv[])

Detailed Description

The unlink(2) system call can cause a process to block for a significant amount of time. Therefore we do not want to make unlink() calls from Squid. Instead we pass them to this external process.

Define Documentation

#define UNLINK_BUF_LEN   1024

Definition at line 51 of file unlinkd_daemon.cc.

Referenced by main().


Function Documentation

int main ( int  argc,
char *  argv[] 
)
This is the unlinkd external process.
unlinkd receives the full path of any files to be removed from stdin, each on its own line.
The results for each file are printed to stdout in the order they were received
Parameters:
argc Ignored.
argv Ignored.
Return values:
ERR An error occured removing the file.
OK The file has been removed.

Definition at line 71 of file unlinkd_daemon.cc.

References _PATH_DEVNULL, NULL, UNLINK_BUF_LEN, and x.

Search

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors