| 6 |
details. |
details. |
| 7 |
|
|
| 8 |
Command-line based frontend |
Command-line based frontend |
| 9 |
$Id: main.c,v 1.24 2002/10/09 20:53:29 weaselp Exp $ */ |
$Id: main.c,v 1.25 2002/10/10 10:06:05 weaselp Exp $ */ |
| 10 |
|
|
| 11 |
|
|
| 12 |
#include "mix3.h" |
#include "mix3.h" |
| 610 |
exit(1); |
exit(1); |
| 611 |
}; |
}; |
| 612 |
}; |
}; |
|
if (write_pidfile(PIDFILE)) { |
|
|
fprintf(stderr, "Aborting.\n"); |
|
|
exit(1); |
|
|
} |
|
| 613 |
freopen ("/dev/null", "r", stdin); |
freopen ("/dev/null", "r", stdin); |
| 614 |
freopen ("/dev/null", "w", stdout); |
freopen ("/dev/null", "w", stdout); |
| 615 |
freopen ("/dev/null", "w", stderr); |
freopen ("/dev/null", "w", stderr); |
| 616 |
} |
} |
| 617 |
|
if (write_pidfile(PIDFILE)) { |
| 618 |
|
fprintf(stderr, "Aborting.\n"); |
| 619 |
|
exit(1); |
| 620 |
|
} |
| 621 |
#endif /* UNIX */ |
#endif /* UNIX */ |
| 622 |
mix_daemon(); |
mix_daemon(); |
| 623 |
#ifdef UNIX |
#ifdef UNIX |