Re: [1.20.0] getty: setsid: Operation not permitted (dissected)

2012-04-25 Thread Tomasz Czapiewski
On Tue, 24 Apr 2012, Denys Vlasenko wrote: On Tue, Apr 24, 2012 at 9:55 PM, Tomasz Czapiewski wrote: Let's verify that. Can you add a debugging printout in getty_main() here?       /* Create new session and pgrp, lose controlling tty */ bb_error_msg("pid:%d", getpid()); bb_error_msg("sid:%d",

Re: comm applet is broken

2012-04-25 Thread John Spencer
On 04/25/2012 07:04 PM, John Spencer wrote: it only works if input is pre-sorted and/or same lines happens to be on the same linenumber in both files never mind, according to the spec the input must be pre-sorted. a hint about that in the comm usage text couldn't hurt though... --JS __

comm applet is broken

2012-04-25 Thread John Spencer
it only works if input is pre-sorted and/or same lines happens to be on the same linenumber in both files root:/src$ comm BusyBox v1.19.4 (2012-04-25 16:09:00 UTC) multi-call binary. Usage: comm [-123] FILE1 FILE2 Compare FILE1 with FILE2 -1 Suppress lines unique to FILE1

switch_root and mount move

2012-04-25 Thread Sergey Naumov
Hello. Could anyone explain what is the purpose of mount move in switch_root? >From this answer (http://lists.busybox.net/pipermail/busybox/2009-June/069609.html) I got reasons why we need to make chroot AND chdir, but can we do it without mount move? My problem is that I want to disable ability

Re: sh: can't open '/dev/console' msg when exiting from a program with exit(1)

2012-04-25 Thread ra...@gmx.de
Hi Eial ! > I cannot tell much about my issue, but in a nutshell, my program > boots a script then run a s bin. > when interrupting the bin using ctrl+c, I get the msg mentioned above > as I use respawn -/bin/sh feature. > if I move /dev/console to 5,2 from 5,1 the msg is gone, but as I do > have

Re: sh: can't open '/dev/console' msg when exiting from a program with exit(1)

2012-04-25 Thread Eial Czerwacki
Hi Harald, > I did not really catch what your trouble is, you didn't give enough > information for me to see what exactly you are doing and when exactly > your problem arise. Please be more specific what you are trying, and > add strace output of your problem (if possible). > > More in detail: If

Re: sh: can't open '/dev/console' msg when exiting from a program with exit(1)

2012-04-25 Thread ra...@gmx.de
Hi Eial ! > I do have an issue later on where I loose keyboard but if I reinstate > it to 5,1 I get that error, any idea why? I did not really catch what your trouble is, you didn't give enough information for me to see what exactly you are doing and when exactly your problem arise. Please be mor

Re: sh: can't open '/dev/console' msg when exiting from a program with exit(1)

2012-04-25 Thread Eial Czerwacki
Hello Harald, > You don't use /dev/ptmx? Are you sure? It is needed whenever you open a > pty devices, a function required for many purposes ... > > I ought you catch something spurious. Please don't make things worse by > unverified change of /dev/console to 5,2. Try to find out what is going >

Re: sh: can't open '/dev/console' msg when exiting from a program with exit(1)

2012-04-25 Thread ra...@gmx.de
Hi Eial ! > > On my system (kernel 3.3.3) /dev/console is on major 5 minor 1 > > > (according to /proc/tty/drivers), the device at major 5 minor 2 > > is /dev/ptmx ... so who is wrong? > > it is the same on my system but I don't use /dev/ptmx, only > /dev/console, also as I use kernel 2.6.38.8,

Re: sh: can't open '/dev/console' msg when exiting from a program with exit(1)

2012-04-25 Thread Eial Czerwacki
Hello Harald, > On my system (kernel 3.3.3) /dev/console is on major 5 minor 1 > (according to /proc/tty/drivers), the device at major 5 minor 2 > is /dev/ptmx ... so who is wrong? it is the same on my system but I don't use /dev/ptmx, only /dev/console, also as I use kernel 2.6.38.8, I think I

Re: sh: can't open '/dev/console' msg when exiting from a program with exit(1)

2012-04-25 Thread ra...@gmx.de
Hi Eial ! > ok, I think I've solved the issue, I was defining /dev/console with > major = 5 and minor = 1, changing minor to 2 solved it (per the > following commit in the kernel: http://... > which clearly states this minor should be 2.) On my system (kernel 3.3.3) /dev/console is on major 5 min

Re: sh: can't open '/dev/console' msg when exiting from a program with exit(1)

2012-04-25 Thread Eial Czerwacki
On 04/24/2012 08:50 AM, Eial Czerwacki wrote: > Hello all, > > I have a busybox 1.19.2 env built with buildroot which runs a specific > binary, > if I press ctrl+c while running the binary, the process exists via > calling exit(1). > > but when I exit, I get the following: > sh: can't open '/dev