mirror of https://github.com/krallin/tini.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
273 B
20 lines
273 B
10 years ago
|
#!/usr/bin/env python
|
||
|
#coding:utf-8
|
||
|
import os
|
||
|
import sys
|
||
|
|
||
|
import prctl
|
||
|
|
||
|
|
||
|
def main():
|
||
|
args = sys.argv[1:]
|
||
|
|
||
|
print "subreaper-proxy: running '%s'" % (" ".join(args))
|
||
|
|
||
|
prctl.set_child_subreaper(1)
|
||
|
os.execv(args[0], args)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
main()
|