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

walter harms wharms at bfs.de
Thu Apr 26 16:06:09 UTC 2012



Am 25.04.2012 11:02, schrieb 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 your program exits and shell continues there usually
>> is no need to reopen /dev/console before displaying the prompt, so I
>> ought you left something of. Are you running a script? Are you in a
>> special (incomplete) execution environment (e.g. chroot)? How is your
>> application called?
> 
> 
> 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
> keyboard with both features, later on, I loose the keyboard in both
> situations.
> 


is is possible that you provide an example aka helloworld that
shows that behavior ?

That would mean we could investigate what the root of the problem is
and perhaps find a long term solution.

re,
 wh


More information about the busybox mailing list