[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] reboot/halt linuxrc init seg fault
From: robotti () metconnect ! com
Date: 2000-10-28 9:53:16
[Download RAW message or body]
There seems to be a problem with reboot, halt, and poweroff,
if you compile the latest cvs bb with both init and linuxrc
support.
If you use linuxrc reboot doesn't find
a pid for init and seg faults.
extern int reboot_main(int argc, char **argv)
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
return(kill(*(findPidByName("init")), SIGINT));
#else
return(kill(1, SIGINT));
#endif
}
If you change it to linuxrc and use init,
reboot doesn't find a pid for linuxrc
and seg faults.
return(kill(*(findPidByName("linuxrc")), SIGINT));
Init will probably be pid #1, but linuxrc probably won't.
This was gone over last month, but i don't think
it's been fixed.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic