diff options
-rw-r--r-- | sway/main.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sway/main.c b/sway/main.c index f37f086d..ffbcdbdf 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -38,12 +38,6 @@ int main(int argc, char **argv) { | |||
38 | 38 | ||
39 | setenv("WLC_DIM", "0", 0); | 39 | setenv("WLC_DIM", "0", 0); |
40 | 40 | ||
41 | FILE *devnull = fopen("/dev/null", "w"); | ||
42 | if (devnull) { | ||
43 | // NOTE: Does not work, see wlc issue #54 | ||
44 | wlc_set_log_file(devnull); | ||
45 | } | ||
46 | |||
47 | /* Changing code earlier than this point requires detailed review */ | 41 | /* Changing code earlier than this point requires detailed review */ |
48 | if (!wlc_init(&interface, argc, argv)) { | 42 | if (!wlc_init(&interface, argc, argv)) { |
49 | return 1; | 43 | return 1; |
@@ -85,9 +79,6 @@ int main(int argc, char **argv) { | |||
85 | 79 | ||
86 | if (debug) { | 80 | if (debug) { |
87 | init_log(L_DEBUG); | 81 | init_log(L_DEBUG); |
88 | wlc_set_log_file(stderr); | ||
89 | fclose(devnull); | ||
90 | devnull = NULL; | ||
91 | } else if (verbose || validate) { | 82 | } else if (verbose || validate) { |
92 | init_log(L_INFO); | 83 | init_log(L_INFO); |
93 | } else { | 84 | } else { |
@@ -114,10 +105,6 @@ int main(int argc, char **argv) { | |||
114 | wlc_run(); | 105 | wlc_run(); |
115 | } | 106 | } |
116 | 107 | ||
117 | if (devnull) { | ||
118 | fclose(devnull); | ||
119 | } | ||
120 | |||
121 | ipc_terminate(); | 108 | ipc_terminate(); |
122 | 109 | ||
123 | return 0; | 110 | return 0; |