1 |
commit: c9aaeed65bf63d24dac5b6dd15566812b3913036 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 28 19:49:54 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 28 19:49:54 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c9aaeed6 |
7 |
|
8 |
genkernel: remove dead code which checked for multiple running genkernel instances |
9 |
|
10 |
Code is disabled since commit 79502f6aa98d98504c5e08c5bf3a3881b68359d8 (2005). |
11 |
|
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
genkernel | 22 ---------------------- |
15 |
1 file changed, 22 deletions(-) |
16 |
|
17 |
diff --git a/genkernel b/genkernel |
18 |
index 39186c3..0e716b5 100755 |
19 |
--- a/genkernel |
20 |
+++ b/genkernel |
21 |
@@ -198,28 +198,6 @@ else |
22 |
fi |
23 |
fi |
24 |
|
25 |
-## Check whether another Genkernel is running |
26 |
-#GENPIDS="`ps -C genkernel --no-headers -o pid | wc -l`" |
27 |
-#if [ "${GENPIDS}" -gt '3' ] |
28 |
-#then |
29 |
-# [ "${GENPIDS}" -gt '4' ] && EX='s' |
30 |
-# print_warning 1 "${BOLD}WARNING${NORMAL}: Another Genkernel instance is running under" |
31 |
-# print_warning 1 " process ID${EX} " 0 |
32 |
-# GENPIDS=`ps -C genkernel --no-headers -o pid` |
33 |
-# printf "%s" "${GENPIDS}" | sed -e "s/$$//; s/ /, /g" |
34 |
-# echo 'halting...' |
35 |
-# echo |
36 |
-# print_warning 1 'Running multiple genkernels on the same source tree will cause data loss!' |
37 |
-# print_info 1 "Press ^C to halt; ^D to continue [ ${BOLD}if${NORMAL} you know what you're doing! ]" |
38 |
-# echo |
39 |
-# CTEMP="${TEMP}" |
40 |
-# TEMP=${TMPDIR-/tmp} |
41 |
-# TEMP=${TEMP}/genkernel.$RANDOM.$RANDOM.$RANDOM.$$ |
42 |
-# print_info 1 'thread: Running multiple genkernels may cause problems!' |
43 |
-# print_info 1 "thread: Temporary files reallocated to ${TEMP}..." |
44 |
-# echo |
45 |
-#fi |
46 |
- |
47 |
KERNCACHE_IS_VALID="no" |
48 |
if [ "${KERNCACHE}" != "" ] |
49 |
then |