Skip to content

ninchat/pysignalfd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

status

import errno
import select
import signal

import signalfd

fd = signalfd.init()

while 1:
	try:
		r, w, x = select.select([fd], [], [])
	except select.error as e:
		if e.args[0] == errno.EINTR:
			continue
		raise

	if r and signalfd.read() == signal.SIGTERM:
		break

About

Robust signal handling for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published