Bug 14901

Summary: koha-shell killed by control-c
Product: Koha Reporter: Kyle M Hall <kyle.m.hall>
Component: PackagingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: robin, tomascohen
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Kyle M Hall 2015-09-25 15:26:22 UTC
When koha-shell is invoked in Debian Wheezy, ctrl-c does not just kill the command you are running, it kills the koha shell itself. This is because koha-shell acts as a command rather than a shell. If koha-shell were to use su - to become the koha user, this would not happen.

Is there a specific reason koha-shell does not use su to change the user, rather than changing the uid and gid?
Comment 1 Tomás Cohen Arazi 2015-09-25 19:39:42 UTC
(In reply to Kyle M Hall from comment #0)
> When koha-shell is invoked in Debian Wheezy, ctrl-c does not just kill the
> command you are running, it kills the koha shell itself. This is because
> koha-shell acts as a command rather than a shell. If koha-shell were to use
> su - to become the koha user, this would not happen.
> 
> Is there a specific reason koha-shell does not use su to change the user,
> rather than changing the uid and gid?

I don't think so. Did you try changing koha-shell like you propose? I would happily test a patch for that :-D
Comment 2 Robin Sheat 2015-09-26 07:50:20 UTC
It does use su.
Comment 3 Tomás Cohen Arazi 2015-10-14 13:55:31 UTC

*** This bug has been marked as a duplicate of bug 15012 ***