From: Andrew Borodin <borodin@zarya-k.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] sudo vs SIGINT
Date: Fri, 30 May 2014 09:08:15 +0400
Message-ID: <20140530050815.GA5149@borodin.zk.lan> (raw)
In-Reply-To: <20140529091546.GA5113@borodin.zk.lan>
On Thu, May 29, 2014 at 01:15:46PM +0400, Andrew Borodin wrote:
> В p6 процесс, запущенный под sudo, можно было прервать, нажав
> ctrl-c. В p7 этот фокус не проходит. ctrl-\ тоже sudo не
> останавливает.
Похоже, я на sudo напраснину возвёл. sudo cat прерывается по
ctrl-c.
В общем, у меня такая ситуация. Есть скрипт startgprs:
======================================================
1 #! /bin/sh
2
3 PROVIDER="$1"
4
5 DIALTIMEOUT=15
6
7 while true
8 do
9 echo -n "Start PPP connection: "
10 date --rfc-2822
11 echo
12
13 rm -f /var/run/pppd2.tdb
14
15 pppd call $PROVIDER
16
17 sleep $DIALTIMEOUT
18 done
19
======================================================
который запускается так:
$ sudo /sbin/startgprs mts-modem
В p6 этот скрипт нормально прерывался по ctrl-c. В p7 уже нет. В
терминале при нажатии ctrl-c пишет ^C.
Кто виноват, непонятно. sudo, pppd, кто-то ещё?
--
С уважением
А. Бородин.
next prev parent reply other threads:[~2014-05-30 5:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-29 9:15 Andrew Borodin
2014-05-30 5:08 ` Andrew Borodin [this message]
2014-05-30 14:13 ` Michael Shigorin
2014-06-03 6:49 ` Andrew Borodin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140530050815.GA5149@borodin.zk.lan \
--to=borodin@zarya-k.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git