From 802ea8347d1ceb7a02cf279359b3b101106fab94 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 9 Jan 2021 16:07:01 +0100 Subject: Added separate thread to check if max meal num is reached independent from philosopher death --- clean_philo_three | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clean_philo_three') 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 -- cgit