summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-24 23:36:21 +0100
committerhut <hut@lavabit.com>2013-02-24 23:36:21 +0100
commite483afd056edf4b8963ca095ea44155e5d61be57 (patch)
treefdaec52ee94cbe7070bae9a96dd81fba2336a88f
parent68ed390d61d3ef6a6dc88bed44c0c1e98216e051 (diff)
downloadranger-e483afd056edf4b8963ca095ea44155e5d61be57.tar.gz
removed unused lib ranger.ext.run_forked
-rw-r--r--ranger/ext/run_forked.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/ranger/ext/run_forked.py b/ranger/ext/run_forked.py
deleted file mode 100644
index f8dd2642..00000000
--- a/ranger/ext/run_forked.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright (C) 2012-2013  Roman Zimbelmann <hut@lavabit.com>
-# This software is distributed under the terms of the GNU GPL version 3.
-
-import os
-import subprocess
-
-def Popen_forked(*args, **kwargs):
-    """Forks process and runs Popen with the given args and kwargs.
-
-    If os.fork() is not supported, runs Popen without forking and returns the
-    process object returned by Popen.
-    Otherwise, returns None.
-    """
-    try:
-        pid = os.fork()
-    except:
-        # fall back to not forking if os.fork() is not supported
-        return subprocess.Popen(*args, **kwargs)
-    else:
-        if pid == 0:
-            os.setsid()
-            kwargs['stdin'] = open(os.devnull, 'r')
-            kwargs['stdout'] = kwargs['stderr'] = open(os.devnull, 'w')
-            subprocess.Popen(*args, **kwargs)
-            os._exit(0)
'>121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236