init=/bin/bash

Kacper Kornet kornet at camk.edu.pl
Sat Apr 9 20:47:27 CEST 2005


When I run my kernel 2.4.29 with the parameter init=/bin/bash, bash hangs
after executing of the first command. I think, that problem is the presence
of WCONTINUED in the arguments of waitpid in function waitchld. The patch
bash-WCONTINUED.patch is supposed to correct it but does not work in this
situation (I don't  know why). I have mananged to correct this problem with
the following patch:

#v+
--- jobs.c.old	2005-04-09 18:30:27.000000000 +0200
+++ jobs.c	2005-04-09 16:43:34.000000000 +0200
@@ -125,10 +125,10 @@
 #endif /* !MUST_REINSTALL_SIGHANDLERS */
 
 /* Some systems let waitpid(2) tell callers about stopped children. */
-#if !defined (WCONTINUED)
-#  define WCONTINUED 0
-#  define WIFCONTINUED(s)	(0)
-#endif
+
+#define WCONTINUED 0
+#define WIFCONTINUED(s)	(0)
+
 
 /* The number of additional slots to allocate when we run out. */
 #define JOB_SLOTS 8
#v-

But maybe someone knows a better solution. If not, maybe it would be a good
idea to add the above patch to CVS.

Best wishes,

-- 
  Kacper Kornet




More information about the pld-devel-en mailing list