aboutsummaryrefslogtreecommitdiff
path: root/clean_philo_three
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-01-09 14:40:23 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-01-09 14:40:23 +0100
commitebbd81e4312d945b359d2761acfeb613da1f98c8 (patch)
tree5ac8f109d8f840e57f001b4739a1b2472a0a2df2 /clean_philo_three
parenta69a877b3a2758aafe3de0db87a56063b28ed00f (diff)
downloadphilosophers-ebbd81e4312d945b359d2761acfeb613da1f98c8.tar.gz
philosophers-ebbd81e4312d945b359d2761acfeb613da1f98c8.tar.bz2
philosophers-ebbd81e4312d945b359d2761acfeb613da1f98c8.zip
Added antidead lock in philo_one
Diffstat (limited to 'clean_philo_three')
-rwxr-xr-xclean_philo_three3
1 files changed, 3 insertions, 0 deletions
diff --git a/clean_philo_three b/clean_philo_three
new file mode 100755
index 0000000..64e53bc
--- /dev/null
+++ b/clean_philo_three
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ps aux | grep philo_three | tr -s ' ' | cut -d ' ' -f 2 | xargs kill -9