On Wed, Nov 25, 2015 at 8:10 AM, Marc Aymerich wrote:
> problem solved !
> Just found out that threads should be started by fuse.init() in order
> to run when fuse is backgrounded.
Glad you found it; I would not have, not being a pyfuse user :)
--
Zach
--
https://mail.python.org/mailman/listin
On Tue, Nov 24, 2015 at 9:17 PM, Marc Aymerich wrote:
> On Tue, Nov 24, 2015 at 8:41 PM, Zachary Ware
> wrote:
>> On Tue, Nov 24, 2015 at 12:37 PM, Marc Aymerich wrote:
>>> still it appears to work only if the main thread is in the foreground
>>> (as of calling Thread() with deamon=True), I don'
On Tue, Nov 24, 2015 at 9:17 PM, Marc Aymerich wrote:
> On Tue, Nov 24, 2015 at 8:41 PM, Zachary Ware
> wrote:
>> On Tue, Nov 24, 2015 at 12:37 PM, Marc Aymerich wrote:
>>> still it appears to work only if the main thread is in the foreground
>>> (as of calling Thread() with deamon=True), I don'
On Tue, Nov 24, 2015 at 8:41 PM, Zachary Ware
wrote:
> On Tue, Nov 24, 2015 at 12:37 PM, Marc Aymerich wrote:
>> still it appears to work only if the main thread is in the foreground
>> (as of calling Thread() with deamon=True), I don't get why it behaves
>> differently :( maybe it is waiting for
On Tue, Nov 24, 2015 at 12:37 PM, Marc Aymerich wrote:
> still it appears to work only if the main thread is in the foreground
> (as of calling Thread() with deamon=True), I don't get why it behaves
> differently :( maybe it is waiting for other stuff, but no idea how to
> confirm this with strace
On Tue, Nov 24, 2015 at 7:11 PM, Zachary Ware
wrote:
> On Tue, Nov 24, 2015 at 9:46 AM, Marc Aymerich wrote:
>> if __name__ == '__main__':
>> loop_container = {}
>> handler = threading.Thread(target=run_loop, args=(loop_container, ))
>> handler.start()
>> try:
>> time.slee
On Tue, Nov 24, 2015 at 9:46 AM, Marc Aymerich wrote:
> if __name__ == '__main__':
> loop_container = {}
> handler = threading.Thread(target=run_loop, args=(loop_container, ))
> handler.start()
> try:
> time.sleep(1)
> finally:
> loop_container['loop'].stop(
threading supports the 'daemon' option[1], when set to True and the
program is in *foreground* then the event-loop thread dies when
SIGTERM-ed, however, if the program is in the *background* it doesn't
work! still deadlocked :'''(
while I'm not finding a definitive solution I'll be doing a
os.kill
On Tue, Nov 24, 2015 at 4:29 PM, Marc Aymerich wrote:
> Hi,
>
> I have to run the asyncio.loop on a separated thread because the main
> thread is running FUSE. Apparently fuse needs to run on the main
> thread because it uses signal():
>
>
> File "/usr/local/lib/python3.4/dist-packages/fuse.p
Hi,
I have to run the asyncio.loop on a separated thread because the main
thread is running FUSE. Apparently fuse needs to run on the main
thread because it uses signal():
File "/usr/local/lib/python3.4/dist-packages/fuse.py", line 390, in __init__
old_handler = signal(SIGINT, SIG_DFL)
V
10 matches
Mail list logo