Skip to content

unshare --user --pid tcsh hangs tcsh #119

@siteshwar

Description

@siteshwar

Running unshare --user --pid tcsh on Linux hangs tcsh at startup. It is caused due to disabled interrupts.

Related code:

tcsh/sh.proc.c

Lines 1829 to 1833 in 985b16f

while ((pid = fork()) == -1)
if (setintr == 0)
(void) sleep(FORKSLEEP);
else
stderror(ERR_NOPROC);

I suspect trying to change this behaviour may have unintended side effects. Is there a possibility this may be fixed upstream?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions