[lkml]   [2006]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: emergency or init=/bin/sh mode and terminal signals
    Samuel Thibault wrote:
    > Hi,
    > There's a long-standing issue in init=/bin/sh mode: pressing control-C
    > doesn't send a SIGINT to programs running on the console. The incurred
    > typical pitfall is if one runs ping without a -c option... no way to
    > stop it!
    > This is because no session is set up by the kernel, and shells don't
    > start sessions on their own, so that no session (hence no controlling
    > tty) is set up.
    > The attached patch sets such session and controlling tty up, which fixes
    > the issue. The unfortunate effect is that init might be killed if one
    > presses control-C very fast after its start.

    Interesting idea, especially for a boot cd I built.

    However, why not only set this if the shell is /bin/sh ?

    Lab tests show that use of micro$oft causes cancer in lab animals
    Got Gas???
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-06-19 00:39    [W:0.021 / U:1.548 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site