su hangs vs 2.6.x kernels, problem found & fixed
2003-12-02 11:22:54
Greetings everybody;
As the transition to the 2.6 kernel family is eminent, there is one
minor gotcha that I can tell you howto fix.
Doing an 'su amanda' in order to do the install hangs the su process
occasionally. If you search thru the process table tree, it can be
seen that su has started another copy of bash, and that bash has a
copy of stty linked to it. Everything above stty is sleeping,
waiting on stty to init I guess. However stty is shown as stopped,
so the shell is well and truely hung. Note that this doesn't seem to
effect the 'su amanda -c "command"' version of the su usage, only
that which actually returns you a shell with amanda rights seems to
be effected.
It turns out there is a missing call in the readymade versions of bash
being shipped with most distro's. Its called PRGP_PIPE in the
.config.
The fedora release of redhat contains a bash rpm that fixes this.
It installed with no hiccups here on this RH8.0 system, and solves
that particular problem.
The test to see if the call is missing in your installed version of
bash is:
#>strings /bin/bash|grep pgrp_pipe
If this returns a null, then its missing and you'll need to find a
bash that has it, or rebuild yours (shudder) after editing the file
config.h to add this line:
-----------------
#define PGRP_PIPE 1
-----------------
I hope this helps the smooth transition to 2.6.
--
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz 512M
99.27% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- su hangs vs 2.6.x kernels, problem found & fixed,
Gene Heskett <=
|
|
|