Revision: | 172 |
Committed: | 2004-06-20T22:47:13-07:00 (21 years ago) by Douglas Thrift |
File size: | 349 byte(s) |
Log Message: | Moving ahead, slowly. |
# | Content |
---|---|
1 | // Smersh |
2 | // |
3 | // Douglas Thrift |
4 | // |
5 | // $Id$ |
6 | |
7 | #include "Daemon.hpp" |
8 | |
9 | void Daemon::serve(bool fork, Daemon* self) |
10 | { |
11 | Person::configure(); |
12 | |
13 | if (fork) |
14 | { |
15 | switch (::fork()) |
16 | { |
17 | case -1: |
18 | cerr << program << ": fork()\n"; |
19 | |
20 | exit(1); |
21 | case 0: |
22 | break; |
23 | default: |
24 | return; |
25 | } |
26 | } |
27 | |
28 | self->handle(); |
29 | } |
30 | |
31 | void Daemon::handle() |
32 | { |
33 | cerr << "Here!\n"; |
34 | } |
Name | Value |
---|---|
svn:eol-style | native |
svn:keywords | Id |