aboutsummaryrefslogtreecommitdiff
path: root/clean_philo_three
diff options
context:
space:
mode:
Diffstat (limited to 'clean_philo_three')
-rwxr-xr-xclean_philo_three2
1 files changed, 1 insertions, 1 deletions
diff --git a/clean_philo_three b/clean_philo_three
index 64e53bc..7e5c722 100755
--- a/clean_philo_three
+++ b/clean_philo_three
@@ -1,3 +1,3 @@
#!/bin/sh
-ps aux | grep philo_three | tr -s ' ' | cut -d ' ' -f 2 | xargs kill -9
+ps aux | grep philo_three | grep -v grep | tr -s ' ' | cut -d ' ' -f 2 | xargs -L1 kill -9