File: btest-setsid

package info (click to toggle)
btest 0.72-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,208 kB
  • sloc: python: 2,187; sh: 547; makefile: 165; xml: 12; awk: 1
file content (15 lines) | stat: -rwxr-xr-x 149 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /usr/bin/env python3

import os
import sys

try:
    os.setsid()
except:
    pass

prog = sys.argv[1]

args = sys.argv[1:]

os.execvp(prog, args)