aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2021-05-15 00:11:59 -0400
committerChristine Dodrill <me@christine.website>2021-05-15 00:11:59 -0400
commit50e57c427c8f8978d9125721c677bd935bb854e7 (patch)
treef5d1cd848d7fdb4795fd7e71be9efb3c4d096485 /src/bin
parent95bfc64097942affe48269ef322a318db104901a (diff)
downloadxesite-cheat-systemd.tar.xz
xesite-cheat-systemd.zip
start cheating systemdcheat-systemd
Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'src/bin')
-rwxr-xr-xsrc/bin/decoy.py13
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)