On Thu, Aug 16, 2012 at 8:01 AM, Priebe, Sebastian
<[email protected]> wrote:
> -----Ursprüngliche Nachricht-----
> Von: Denys Vlasenko [mailto:[email protected]]
> Gesendet: Mittwoch, 15. August 2012 16:22
> An: Priebe, Sebastian
> Cc: [email protected]
> Betreff: Re: getty: setsid: Operation not permitted on busybox v1.20.2
>
>>On Wed, Aug 15, 2012 at 10:00 AM, Priebe, Sebastian 
>><[email protected]> wrote:
>>> Hello,
>>>
>>> I get " getty: setsid: Operation not permitted" if calling "getty 921600 
>>> tty0".
>>
>>Please find this place in getty.c:
>>
>>                pid = getpid();
>>                if (getsid(0) != pid)
>>                        bb_perror_msg_and_die("setsid");
>>
>>
>>and modify it to print this:
>>
>>bb_perror_msg_and_die("setsid fails: pid %d ppid %d sid %d", pid, getppid(), 
>>getsid(0));
>
> getty: setsid fails: pid 1100 ppid 1092 sid 1092: Operation not permitted

Aww. I *think* we are process group leader.
Please run with this:

bb_perror_msg_and_die("setsid fails: pid %d ppid %d sid %d pgid %d",
pid, getppid(), getsid(0), getpgid(0));

and let me know what does it say.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to