summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-08-26 03:27:31 -0500
committerEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-08-26 03:27:31 -0500
commit5b723a9da5b94d3a99225f43c7dafcffa1f7676b (patch)
tree829b2cb71ee90b5346d9f8a36bdba9c55e921a5b /shell
parent1e023da47a5d0248808e33fb5feac18df6df3585 (diff)
downloadsegfault-5b723a9da5b94d3a99225f43c7dafcffa1f7676b.tar.gz
segfault-5b723a9da5b94d3a99225f43c7dafcffa1f7676b.zip
fixed the rand() seeding to use pid too so bots started in the same second don't generate the same random nick.
made shell use pkill stuff instead of kill `pgrep stuff`
Diffstat (limited to 'shell')
-rwxr-xr-xshell2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell b/shell
index 32b6c2b..2d98edf 100755
--- a/shell
+++ b/shell
@@ -1,6 +1,6 @@
#!/bin/sh
#this is to keep stale tails from hanging around...
-kill `pgrep -P 1 -f "tail -f /home/segfault/files/cmd_in"`
+pkill -P 1 -f "tail -f /home/segfault/files/cmd_in"
mkdir -p /home/segfault/files
mkfifo /home/segfault/files/cmd_in
mkfifo /home/segfault/files/cmd_out