diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-03-23 21:54:19 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-03-23 21:54:19 -0700 |
commit | 494f8eb820eb22e5920baa5764660a2ac5dc2824 (patch) | |
tree | 9fd5e5b8b4de607abfc123bd71229a3902fce0bb /src/connection/chroot.lisp | |
parent | a8047da6699c8dfcb281e422689c8003305768a8 (diff) | |
download | consfigurator-494f8eb820eb22e5920baa5764660a2ac5dc2824.tar.gz |
move CAN-PROBABLY-FORK to CONNECTION.FORK
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection/chroot.lisp')
-rw-r--r-- | src/connection/chroot.lisp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/connection/chroot.lisp b/src/connection/chroot.lisp index df6b85b..f518acf 100644 --- a/src/connection/chroot.lisp +++ b/src/connection/chroot.lisp @@ -23,16 +23,6 @@ (defun can-chroot () (zerop (foreign-funcall "geteuid" :int))) -(defun can-probably-fork () - "Return nil if we can detect other running threads, and the Lisp -implementation is known not to support forking when there are other threads. -A return value other than nil indicates only that we couldn't detect -circumstances in which it is known that we cannot fork, not that we are sure -we can fork -- a thread might be only partly initialised at the time we check, -for example, such that we don't see it." - (and - #+sbcl (> 2 (length (sb-thread:list-all-threads))))) - (defmethod establish-connection ((type (eql :chroot)) remaining &key into) (establish-connection (if (and (lisp-connection-p) (can-chroot) |