diff options
Diffstat (limited to 'src/bin/decoy.py')
| -rwxr-xr-x | src/bin/decoy.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bin/decoy.py b/src/bin/decoy.py new file mode 100755 index 0000000..f985413 --- /dev/null +++ b/src/bin/decoy.py @@ -0,0 +1,13 @@ +#!/usr/bin/env nix-shell +#! nix-shell -p python3 -i python3 + +import os +import time + +pid = os.fork() +if pid == 0: + for fd in {0, 1, 2}: + os.close(fd) + time.sleep(1) +else: + print(pid) |
