snaplock: main.cpp File Reference

snaplock  1.7.14
The multi-computer lock service.
main.cpp File Reference
#include "snaplock.h"
#include <snapwebsites/log.h>
#include <advgetopt/exception.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions int main (int argc, char *argv[])   Variables bool g_isatty = false  Define whether the standard output stream is a TTY. More...
  Function Documentation
int main ( int  argc, char *  argv[]  )

Definition at line 62 of file main.cpp.

References g_isatty.

Variable Documentation
bool g_isatty = false

This function defines whether 'stderr' is a TTY or not. If not we assume that we were started as a deamon and we do not spit out errors in stderr. If it is a TTY, then we also print a message in the console making it easier to right away know that the tool detected an error and did not start in the background.

Definition at line 59 of file main.cpp.

Referenced by main().

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.

Syndicate content

Snap! Websites
An Open Source CMS System in C++

Contact Us Directly