From: vx8400 <vx8400@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] [p6] тестирование новых freerdp и remmina
Date: Sun, 26 Feb 2012 18:53:11 +0100
Message-ID: <CAMBdDKojGiE9LC3wMrvBKHYKxrdZryU=1K-299NCmzs4o=n=6g@mail.gmail.com> (raw)
In-Reply-To: <20120226155802.GB6389@atlas.home>
26 февраля 2012 г. 16:58 Sergey Vlasov:
> On Sun, Feb 26, 2012 at 02:21:59PM +0100, vx8400 wrote:
>>
>> boolean tls_disconnect(rdpTls* tls)
>> {
>> uint8 _buf_[8];
>> if (tls_read(tls,_buf_,0) < 0)
>
> Всё равно там race - пакет с другой стороны может дойти уже после
> завершения tls_read(), и получится тот же SIGPIPE.
Конечно. Это заглушка для личного пользования.
xfreerdp может ловить SIGPIPE. В самом начале есть
вызов freerdp_handle_signals(), но fatal_handler(SIGPIPE) все равно
прерывает программу:
default_sigaction.sa_handler = SIG_DFL;
...
sigaction(SIGPIPE,&default_sigaction,NULL);
...
raise(SIGPIPE);
Для xfreerdp это некритично, так как ему все равно надо завершаться.
В remmina перехват сигналов не вижу вообще.
Еще один вопрос по remmina:
запускаем и сразу же нажимаем в меню соединение -> закрыть.
Окно исчезает, процесс висит. Завершается, если послать SIGTERM.
Это баг или фича?
% gdb --pid=`/sbin/pidof remmina`
...
(gdb) bt
#0 0x00b7aafc in __poll (fds=0x8fd7030, nfds=3, timeout=-1) at
../sysdeps/unix/sysv/linux/poll.c:87
#1 0x002736fb in g_poll (fds=0x8fd7030, nfds=3, timeout=-1) at gpoll.c:132
#2 0x00262b97 in g_main_context_poll (context=0x8ea1790, block=1,
dispatch=1, self=<value optimized out>) at gmain.c:3405
#3 g_main_context_iterate (context=0x8ea1790, block=1, dispatch=1,
self=<value optimized out>) at gmain.c:3087
#4 0x0026336b in g_main_loop_run (loop=0x8ea2c68) at gmain.c:3300
#5 0x0054dd2c in gtk_main () from /usr/lib/libgtk-3.so.0
#6 0x08058fab in main (argc=1, argv=0xbfd3bfd4) at
/afs/cern.ch/user/o/olezenin/RPM/BUILD/remmina-1.0.0/remmina/src/remmina.c:220
wbr,
Oleg.
next prev parent reply other threads:[~2012-02-26 17:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-21 13:33 Андрей Черепанов
2012-02-21 20:04 ` Sergey Vlasov
2012-02-21 20:13 ` vx8400
2012-02-22 9:03 ` Андрей Черепанов
2012-02-21 20:17 ` Sergey Vlasov
2012-02-22 9:01 ` Андрей Черепанов
2012-02-22 9:19 ` Alexey Borisenkov
2012-02-24 19:31 ` vx8400
2012-02-24 22:39 ` Dubrovskiy Viacheslav
2012-02-25 15:28 ` vx8400
2012-02-25 15:42 ` vx8400
2012-02-25 17:37 ` Dubrovskiy Viacheslav
2012-02-25 21:36 ` vx8400
2012-02-26 8:40 ` Sergey Vlasov
2012-02-26 13:21 ` vx8400
2012-02-26 15:58 ` Sergey Vlasov
2012-02-26 17:53 ` vx8400 [this message]
2012-02-26 20:38 ` Sergey Vlasov
2012-02-22 12:13 ` Sergey Vlasov
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='CAMBdDKojGiE9LC3wMrvBKHYKxrdZryU=1K-299NCmzs4o=n=6g@mail.gmail.com' \
--to=vx8400@gmail.com \
--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