mirror of
https://github.com/gryf/ferrit.git
synced 2026-02-24 11:15:46 +01:00
Rename http to rest due to wierd issue in bottle
This commit is contained in:
@@ -4,7 +4,7 @@ import os
|
|||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from ferrit import ssh
|
from ferrit import ssh
|
||||||
from ferrit import http
|
from ferrit import rest
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@@ -13,12 +13,12 @@ def main():
|
|||||||
os.unlink(fifo)
|
os.unlink(fifo)
|
||||||
os.mkfifo(fifo)
|
os.mkfifo(fifo)
|
||||||
ssh.FIFO = fifo
|
ssh.FIFO = fifo
|
||||||
http.FIFO = fifo
|
rest.FIFO = fifo
|
||||||
try:
|
try:
|
||||||
p1 = multiprocessing.Process(target=ssh.main)
|
p1 = multiprocessing.Process(target=ssh.main)
|
||||||
p1.daemon = True
|
p1.daemon = True
|
||||||
p1.start()
|
p1.start()
|
||||||
p2 = multiprocessing.Process(target=http.main)
|
p2 = multiprocessing.Process(target=rest.main)
|
||||||
p2.daemon = False
|
p2.daemon = False
|
||||||
p2.start()
|
p2.start()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user