Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

here appear to be 1 leaked shared_memory objects to clean up at shutdown #55

Open
tgwaste opened this issue Jan 31, 2022 · 0 comments
Open

Comments

@tgwaste
Copy link

tgwaste commented Jan 31, 2022

test/root# ./t2.py
test/root# /usr/lib/python3.8/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked shared_memory objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '

t2.py code

#!/usr/bin/env python3

from shared_memory_dict import SharedMemoryDict
import datetime, os, time

smd = SharedMemoryDict(name='tokens', size=1024*10)

ts = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
smd['0005'] = ts

smd.shm.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant