ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] sudo vs SIGINT
@ 2014-05-29  9:15 Andrew Borodin
  2014-05-30  5:08 ` Andrew Borodin
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Borodin @ 2014-05-29  9:15 UTC (permalink / raw)
  To: community

Здравствуйте!

В p6 процесс, запущенный под sudo, можно было прервать, нажав 
ctrl-c. В p7 этот фокус не проходит. ctrl-\ тоже sudo не 
останавливает.

И как теперь быть?

Гугление какого-то внятного объяснения мне не дало.

-- 

С уважением
А. Бородин.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] sudo vs SIGINT
  2014-05-29  9:15 [Comm] sudo vs SIGINT Andrew Borodin
@ 2014-05-30  5:08 ` Andrew Borodin
  2014-05-30 14:13   ` Michael Shigorin
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Borodin @ 2014-05-30  5:08 UTC (permalink / raw)
  To: community

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, кто-то ещё?

-- 

С уважением
А. Бородин.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] sudo vs SIGINT
  2014-05-30  5:08 ` Andrew Borodin
@ 2014-05-30 14:13   ` Michael Shigorin
  2014-06-03  6:49     ` Andrew Borodin
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Shigorin @ 2014-05-30 14:13 UTC (permalink / raw)
  To: community

On Fri, May 30, 2014 at 09:08:15AM +0400, Andrew Borodin wrote:
> В общем, у меня такая ситуация. Есть скрипт startgprs:

http://altlinux.org/etcnet#ppp не?

>  3 PROVIDER="$1"

ifup mts-modem бы...

(про изменение обработки ничего не скажу, самого потихоньку достаёт)

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] sudo vs SIGINT
  2014-05-30 14:13   ` Michael Shigorin
@ 2014-06-03  6:49     ` Andrew Borodin
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Borodin @ 2014-06-03  6:49 UTC (permalink / raw)
  To: community

On Fri, May 30, 2014 at 05:13:55PM +0300, Michael Shigorin wrote:
> On Fri, May 30, 2014 at 09:08:15AM +0400, Andrew Borodin wrote:
> > В общем, у меня такая ситуация. Есть скрипт startgprs:

> http://altlinux.org/etcnet#ppp не?

Ну, наверное, надо собраться с силами побороть лень и попробовать 
настроить.

> >  3 PROVIDER="$1"

> ifup mts-modem бы...

-- 

С уважением
А. Бородин.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-03  6:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-29  9:15 [Comm] sudo vs SIGINT Andrew Borodin
2014-05-30  5:08 ` Andrew Borodin
2014-05-30 14:13   ` Michael Shigorin
2014-06-03  6:49     ` Andrew Borodin

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