summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cc b/src/main.cc
index d7b5464..5a4d65c 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: main.cc,v 1.10 2002/12/02 22:02:35 fluxgen Exp $ 25// $Id: main.cc,v 1.11 2002/12/03 01:46:28 fluxgen Exp $
26 26
27 27
28 28
@@ -195,12 +195,12 @@ int main(int argc, char **argv) {
195 _chdir2(getenv("X11ROOT")); 195 _chdir2(getenv("X11ROOT"));
196#endif // __EMX__ 196#endif // __EMX__
197 Fluxbox *fluxbox=0; 197 Fluxbox *fluxbox=0;
198 int exitcode=EXIT_SUCCESS; 198 int exitcode=EXIT_FAILURE;
199 try { 199 try {
200 200
201 fluxbox = new Fluxbox(argc, argv, session_display, rc_file); 201 fluxbox = new Fluxbox(argc, argv, session_display, rc_file);
202 fluxbox->eventLoop(); 202 fluxbox->eventLoop();
203 203 exitcode = EXIT_SUCCESS;
204 } catch (std::out_of_range &oor) { 204 } catch (std::out_of_range &oor) {
205 cerr<<"Fluxbox: Out of range: "<<oor.what()<<endl; 205 cerr<<"Fluxbox: Out of range: "<<oor.what()<<endl;
206 } catch (std::logic_error &le) { 206 } catch (std::logic_error &le) {
@@ -222,5 +222,5 @@ int main(int argc, char **argv) {
222 222
223 if (fluxbox) 223 if (fluxbox)
224 delete fluxbox; 224 delete fluxbox;
225 exit(exitcode); 225 return exitcode;
226} 226}