BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001063 [BusyBox] New Features feature N/A 10-05-06 00:39 02-13-08 09:36
Reporter pyret View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.2.x
Summary 0001063: Add support for --nicelevel option to start-stop-daemon
Description The Debian version of start-stop-daemon has an option to adjust the nice level of the process started. It would be nice if busybox start-stop-daemon had the same option.

I have written a patch that adds this option, I'll attach it here.
Additional Information
Attached Files  busybox-1.2.1-nicelevel.patch [^] (3,115 bytes) 10-05-06 00:39

- Relationships

- Notes
(0001692)
vda
10-07-06 09:22

Maybe use this?

nice -n N start-stop-daemon ...
 
(0001693)
pyret
10-08-06 09:00

Yes, nice -n works fine, I tried that. But in my case I have to be backward compatible with an old HardHat installation, thus the patch.
 
(0001694)
vda
10-08-06 16:45

Patch is buggy (feeds int* to getopt32...). Fixed and applied to svn. Please test it.
 
(0001695)
pyret
10-09-06 03:11
edited on: 10-09-06 03:52

I have tried to compile the latest busybox from svn, but it fails. First, I'm cross-compiling for powerpc, and -march=i386 is hard-coded in Makefile.flags. After fixing that, the compilation fails with:
CC coreutils/stty.o
coreutils/stty.c:255: warning: large integer implicitly truncated to unsigned type
coreutils/stty.c:256: warning: large integer implicitly truncated to unsigned type
make[1]: *** [coreutils/stty.o] Error 1
make: *** [coreutils] Error 2

I don't have time to look into this right now, I'll try to get back to this in a week or so.

 
(0001696)
vda
10-09-06 11:48

Will look into "-march=i386" problem.
The second problem is:

struct mode_info {
        const char *name; /* Name given on command line */
        char type; /* Which structure element to change */
        char flags; /* Setting and display options */
        unsigned short mask; /* Other bits to turn off for this mode */
        unsigned long bits; /* Bits to set for this mode */
};

#define MI_ENTRY(N,T,F,B,M) { N, T, F, M, B }
....
#ifdef VTDLY
        MI_ENTRY("vt1", output, SANE_UNSET, VT1, VTDLY),
        MI_ENTRY("vt0", output, SANE_SET, VT0, VTDLY),
#endif

These are the lines. It's VT0, VT1 or VTDLY. Can you determine which,
and what value does it have? make coreutils/stty.i will help a lot. ;)
 
(0001697)
vda
10-09-06 11:51

And, oh, can you inform me of version and options you used to build powerpc cross-compiler? (gcc -v output, at least...) What kind of libc will I need? I maybe will build my own powerpc tollchain just for testing.
 
(0004524)
vda
02-13-08 09:36

Fixed in svn sometime ago (before 1.9.0)
 

- Issue History
Date Modified Username Field Change
10-05-06 00:39 pyret New Issue
10-05-06 00:39 pyret Status new => assigned
10-05-06 00:39 pyret Assigned To  => BusyBox
10-05-06 00:39 pyret File Added: busybox-1.2.1-nicelevel.patch
10-07-06 09:22 vda Note Added: 0001692
10-08-06 09:00 pyret Note Added: 0001693
10-08-06 16:45 vda Note Added: 0001694
10-09-06 03:11 pyret Note Added: 0001695
10-09-06 03:52 pyret Note Edited: 0001695
10-09-06 11:48 vda Note Added: 0001696
10-09-06 11:51 vda Note Added: 0001697
02-13-08 09:36 vda Status assigned => closed
02-13-08 09:36 vda Note Added: 0004524
02-13-08 09:36 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker