Bug 14901 - koha-shell killed by control-c
Summary: koha-shell killed by control-c
Status: RESOLVED DUPLICATE of bug 15012
Alias: None
Product: Koha
Classification: Unclassified
Component: Packaging (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-25 15:26 UTC by Kyle M Hall
Modified: 2015-10-14 13:55 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***